diff --git a/frontend/src/components/API/dashboard.tsx b/frontend/src/components/API/dashboard.tsx index cf464de..b3b2843 100644 --- a/frontend/src/components/API/dashboard.tsx +++ b/frontend/src/components/API/dashboard.tsx @@ -1,6 +1,23 @@ import React, { Component } from 'react'; class DashboardCom extends Component { + constructor(props) { + super(props) + var cookies_data = sessionStorage.getItem('cookies_data'); + var csrfcookie_ = sessionStorage.getItem('csrfcookie'); + fetch('../api/dashboard', { + method: 'POST', + mode: 'cors', + headers: { + 'Content-Type': 'application/json', + 'X-CSRFToken': csrfcookie_ + }, + body: cookies_data + }).then(response => response.json()).then(data => { + console.log(data) + }) + } + render() { return (

Dashboard