Przeglądaj źródła

resolve problem about basic auth when the app is behind a proxy server

xesrc 1 rok temu
rodzic
commit
a5fe9bc6d6
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      app/requests.ts

+ 1 - 3
app/requests.ts

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