From 043b80ddd40e4896fd97e954e8bb68e468864bd4 Mon Sep 17 00:00:00 2001 From: ikechan8370 Date: Sat, 26 Aug 2023 10:52:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E4=B8=80=E4=BA=9Bhead?= =?UTF-8?q?ers=E4=BB=A5=E5=87=8F=E5=B0=91=E5=A5=87=E6=80=AA=E7=9A=84502?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/SydneyAIClient.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/utils/SydneyAIClient.js b/utils/SydneyAIClient.js index 6a47799..be9fb1f 100644 --- a/utils/SydneyAIClient.js +++ b/utils/SydneyAIClient.js @@ -70,25 +70,25 @@ export default class SydneyAIClient { accept: 'application/json', 'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6', 'content-type': 'application/json', - 'sec-ch-ua': '"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"', + // 'sec-ch-ua': '"Microsoft Edge";v="113", "Chromium";v="113", "Not-A.Brand";v="24"', // 'sec-ch-ua-arch': '"x86"', // 'sec-ch-ua-bitness': '"64"', // 'sec-ch-ua-full-version': '"112.0.1722.7"', // 'sec-ch-ua-full-version-list': '"Chromium";v="112.0.5615.20", "Microsoft Edge";v="112.0.1722.7", "Not:A-Brand";v="99.0.0.0"', - 'sec-ch-ua-mobile': '?0', + // 'sec-ch-ua-mobile': '?0', // 'sec-ch-ua-model': '', - 'sec-ch-ua-platform': '"macOS"', + // 'sec-ch-ua-platform': '"macOS"', // 'sec-ch-ua-platform-version': '"15.0.0"', - 'sec-fetch-dest': 'empty', - 'sec-fetch-mode': 'cors', - 'sec-fetch-site': 'same-origin', - 'x-ms-client-request-id': crypto.randomUUID(), - 'x-ms-useragent': 'azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.10.3 OS/macOS', + // 'sec-fetch-dest': 'empty', + // 'sec-fetch-mode': 'cors', + // 'sec-fetch-site': 'same-origin', + // 'x-ms-client-request-id': crypto.randomUUID(), + // 'x-ms-useragent': 'azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.10.3 OS/macOS', // cookie: this.opts.cookies || `_U=${this.opts.userToken}`, Referer: 'https://edgeservices.bing.com/edgesvc/chat?udsframed=1&form=SHORUN&clientscopes=chat,noheader,channelstable,', - 'Referrer-Policy': 'origin-when-cross-origin', + // 'Referrer-Policy': 'origin-when-cross-origin', // Workaround for request being blocked due to geolocation - 'x-forwarded-for': '1.1.1.1' + // 'x-forwarded-for': '1.1.1.1' } } if (this.opts.cookies || this.opts.userToken) {