From d69ccad7593c75ff8c51bf7b698d53214d3f5361 Mon Sep 17 00:00:00 2001 From: Michael Taylor Date: Tue, 12 Mar 2024 13:36:08 -0400 Subject: [PATCH] fix: add api key to signin from local --- src/store/actions/app.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/store/actions/app.js b/src/store/actions/app.js index d58f56e6..0a5741e1 100644 --- a/src/store/actions/app.js +++ b/src/store/actions/app.js @@ -171,6 +171,10 @@ export const signInFromLocalStorage = () => { try { const response = await fetch(`${serverAddress}/v1/organizations`, { method: 'HEAD', + headers: { + 'Content-Type': 'application/json', + 'x-api-key': apiKey, + }, }); if (response.status !== 200) { console.error(`Server returned status: ${response.status}`);