From a5fe9bc6d6935aa611bdfc4ecacf86bc6b09e345 Mon Sep 17 00:00:00 2001 From: xesrc <7753089+xesrc@users.noreply.github.com> Date: Thu, 4 May 2023 16:11:44 +0800 Subject: [PATCH] resolve problem about basic auth when the app is behind a proxy server --- app/requests.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/requests.ts b/app/requests.ts index 6a1553943..e6ad8522a 100644 --- a/app/requests.ts +++ b/app/requests.ts @@ -44,9 +44,7 @@ const makeRequestParam = ( function getHeaders() { const accessStore = useAccessStore.getState(); - const headers = { - Authorization: "", - }; + let headers: Record = {}; const makeBearer = (token: string) => `Bearer ${token.trim()}`; const validString = (x: string) => x && x.length > 0;