bingAI: supports cors with cookies

This commit is contained in:
James Feng Cao 2023-04-03 17:51:28 +08:00
parent 37e1fae65a
commit ed2b96f46c
8 changed files with 25 additions and 18 deletions

View file

@ -439,7 +439,7 @@ async function createChat(theChatType) {
}
try {
await copyCookies(magicUrl);
let res = await fetch(URLTrue(magicUrl, 'Create'));
let res = await fetch(URLTrue(magicUrl, 'Create'),{credentials: 'include'});
let resjson = await res.json();
if (!resjson.result) {
console.warn(resjson);