소스 검색

Merge pull request #1235 from xesrc/main

resolve problem about basic auth when the app is behind a proxy server
Yifei Zhang 1 년 전
부모
커밋
093df395c7
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  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;