mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
bingAI: supports cors with cookies
This commit is contained in:
parent
37e1fae65a
commit
ed2b96f46c
8 changed files with 25 additions and 18 deletions
|
@ -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);
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
if("https://www.bing.com/turing/conversation/create"==url){
|
||||
url = "https://mybing2.xn--xyza.top/Create";
|
||||
options = {
|
||||
credentials: 'include',
|
||||
headers:{},
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue