diff --git a/apps/web/src/app/app.tsx b/apps/web/src/app/app.tsx index 0ade92ac7e9320e11450a5ab267b210642ba1660..ba70c45a0714465a5825e2dea9415b80e918d096 100644 --- a/apps/web/src/app/app.tsx +++ b/apps/web/src/app/app.tsx @@ -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');