소스 검색

fix: wont show auth popup when receiving a 401 http code

Yidadaa 1 년 전
부모
커밋
600b1814a1
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      app/client/api.ts

+ 1 - 0
app/client/api.ts

@@ -62,6 +62,7 @@ export function getHeaders() {
   const accessStore = useAccessStore.getState();
   let headers: Record<string, string> = {
     "Content-Type": "application/json",
+    "x-requested-with": "XMLHttpRequest",
   };
 
   const makeBearer = (token: string) => `Bearer ${token.trim()}`;