Skip to content

Commit ed37094

Browse files
chore(bing): update headers
1 parent 965c2fc commit ed37094

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/BingAIClient.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ export default class BingAIClient {
4343
accept: 'application/json',
4444
'accept-language': 'en-US,en;q=0.9',
4545
'content-type': 'application/json',
46-
'sec-ch-ua': '"Not_A Brand";v="99", "Microsoft Edge";v="109", "Chromium";v="109"',
46+
'sec-ch-ua': '"Chromium";v="112", "Microsoft Edge";v="112", "Not:A-Brand";v="99"',
4747
'sec-ch-ua-arch': '"x86"',
4848
'sec-ch-ua-bitness': '"64"',
49-
'sec-ch-ua-full-version': '"109.0.1518.78"',
50-
'sec-ch-ua-full-version-list': '"Not_A Brand";v="99.0.0.0", "Microsoft Edge";v="109.0.1518.78", "Chromium";v="109.0.5414.120"',
49+
'sec-ch-ua-full-version': '"112.0.1722.7"',
50+
'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"',
5151
'sec-ch-ua-mobile': '?0',
52-
'sec-ch-ua-model': '',
52+
'sec-ch-ua-model': '""',
5353
'sec-ch-ua-platform': '"Windows"',
5454
'sec-ch-ua-platform-version': '"15.0.0"',
5555
'sec-fetch-dest': 'empty',
@@ -58,7 +58,7 @@ export default class BingAIClient {
5858
'x-ms-client-request-id': crypto.randomUUID(),
5959
'x-ms-useragent': 'azsdk-js-api-client-factory/1.0.0-beta.1 core-rest-pipeline/1.10.0 OS/Win32',
6060
cookie: this.options.cookies || `_U=${this.options.userToken}`,
61-
Referer: 'https://www.bing.com/search?q=Bing+AI&showconv=1&FORM=hpcodx',
61+
Referer: 'https://www.bing.com/search?toWww=1&redig=0E86B6ECDAC74CC594B7A0E3BEC58D15&q=Bing+AI&showconv=1',
6262
'Referrer-Policy': 'origin-when-cross-origin',
6363
},
6464
};

0 commit comments

Comments
 (0)