瀏覽代碼

Merge pull request #1 from Rocky0102/Rocky0102-patch-proper-accept-header

Update api.ts to set proper header "Accept"
Rocky 2 年之前
父節點
當前提交
8efe26ed57
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/client/api.ts

+ 1 - 0
app/client/api.ts

@@ -130,6 +130,7 @@ export function getHeaders() {
   const headers: Record<string, string> = {
     "Content-Type": "application/json",
     "x-requested-with": "XMLHttpRequest",
+    "Accept": "application/json",
   };
 
   const isAzure = accessStore.provider === ServiceProvider.Azure;