Browse Source

Merge pull request #1235 from xesrc/main

resolve problem about basic auth when the app is behind a proxy server
Yifei Zhang 1 year ago
parent
commit
093df395c7
1 changed files with 1 additions and 3 deletions
  1. 1 3
      app/requests.ts

+ 1 - 3
app/requests.ts

@@ -45,9 +45,7 @@ const makeRequestParam = (
 
 function getHeaders() {
   const accessStore = useAccessStore.getState();
-  const headers = {
-    Authorization: "",
-  };
+  let headers: Record<string, string> = {};
 
   const makeBearer = (token: string) => `Bearer ${token.trim()}`;
   const validString = (x: string) => x && x.length > 0;