From fb916a8f5b78dd6baa9727ab3d3f56ff18580020 Mon Sep 17 00:00:00 2001
From: Leonardo Christino <leomilho@gmail.com>
Date: Tue, 17 Oct 2023 18:08:46 +0200
Subject: [PATCH] chore: add header handler for temp logging

---
 apps/web/src/app/app.tsx | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/apps/web/src/app/app.tsx b/apps/web/src/app/app.tsx
index 0ade92ac7..ba70c45a0 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');
-- 
GitLab