Skip to content
Snippets Groups Projects
Commit fb916a8f authored by Leonardo Christino's avatar Leonardo Christino
Browse files

chore: add header handler for temp logging

parent 92d0f1f1
No related branches found
No related tags found
No related merge requests found
Pipeline #127432 passed
......@@ -70,6 +70,16 @@ export function App(props: App) {
Broker.instance().subscribe((data: LinkPredictionInstance[]) => dispatch(setMLResult({ type: mlType, result: data })), mlType);
});
const domain = import.meta.env.BACKEND_URL;
const useruri = import.meta.env.BACKEND_USER;
fetch(`${domain}${useruri}/headers`);
fetch(`${domain}${useruri}/headers`, {
credentials: 'include',
headers: {
Authorization: `Bearer ${auth.accessToken}`,
},
});
return () => {
Broker.instance().unSubscribeAll('schema_result');
Broker.instance().unSubscribeAll('query_result');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment