From ed2b96f46c7fee936d918c95193702daf08e3275 Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Mon, 3 Apr 2023 17:51:28 +0800 Subject: [PATCH] bingAI: supports cors with cookies --- en/adblock_domain/index.html | 7 ++++++- en/changelog/index.html | 5 +++-- en/index.xml | 6 +++--- en/searchurl/bingAI/js/bingChatHub.js | 2 +- en/searchurl/sitejs/www.bing.com.js | 1 + en/sitemap.xml | 14 +++++++------- en/topposts/index.xml | 6 +++--- sitemap.xml | 2 +- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/en/adblock_domain/index.html b/en/adblock_domain/index.html index 92a34b43..68c58ee1 100644 --- a/en/adblock_domain/index.html +++ b/en/adblock_domain/index.html @@ -68,6 +68,11 @@

which will make all git repositories on the domain visitable as websites with raw file access url.

+ +

which makes "mybing2.xn--xyza.top" to accept CORS requests with cookies.

"default.hosts" blocks whole domain trees including all descedant domains. The domains in the hosts file must be 2 or 3 segment domains, such as "yahoo.com" and "finance.yahoo.com". If the length of the last 2 segments is less than 7, such as "com.pl", then it is treated as one segment, so domains like "xxx.xxx.com.pl" are also valid in the hosts file.

Each line of the hosts file has the following format:
[rootDomain][space][regex for domain prefix before rootDomain][space][regex for the whole url without "http(s)://"]
@@ -75,7 +80,7 @@ The first part [rootDomain] is required and the others are optional. regex is ja

Last Modified: 3 April 2023
-enhance hosts file to add attributes to domains
+bingAI to support cors with cookies


 

diff --git a/en/changelog/index.html b/en/changelog/index.html index c0df0a13..1939a7a7 100644 --- a/en/changelog/index.html +++ b/en/changelog/index.html @@ -51,7 +51,8 @@

pagure

Main features

Change logs

-

987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address.
+

988: hosts file to support response headers.
+987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address.
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
983: support "hosts" file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.
975: Bookmarks to support styling for markdown etc.
@@ -78,7 +79,7 @@

Last Modified: 3 April 2023
-enhance hosts file to add attributes to domains
+bingAI to support cors with cookies


 

diff --git a/en/index.xml b/en/index.xml index 1f9425b1..d6ff861c 100644 --- a/en/index.xml +++ b/en/index.xml @@ -196,10 +196,10 @@ github sourceforge powerfolder pagure -Main features Change logs 987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address. +Main features Change logs 988: hosts file to support response headers. +987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address. 985: Special urls to support shortcut keys such as ctrl-a to ctrl-z. -983: support "hosts" file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name. -975: Bookmarks to support styling for markdown etc. +983: support "hosts" file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name. diff --git a/en/searchurl/bingAI/js/bingChatHub.js b/en/searchurl/bingAI/js/bingChatHub.js index a13f2c81..1c40007e 100644 --- a/en/searchurl/bingAI/js/bingChatHub.js +++ b/en/searchurl/bingAI/js/bingChatHub.js @@ -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); diff --git a/en/searchurl/sitejs/www.bing.com.js b/en/searchurl/sitejs/www.bing.com.js index c5853a81..e225d448 100644 --- a/en/searchurl/sitejs/www.bing.com.js +++ b/en/searchurl/sitejs/www.bing.com.js @@ -4,6 +4,7 @@ if("https://www.bing.com/turing/conversation/create"==url){ url = "https://mybing2.xn--xyza.top/Create"; options = { + credentials: 'include', headers:{}, }; } diff --git a/en/sitemap.xml b/en/sitemap.xml index 6a566f3b..43de4005 100644 --- a/en/sitemap.xml +++ b/en/sitemap.xml @@ -3,7 +3,7 @@ xmlns:xhtml="http://www.w3.org/1999/xhtml"> /en/_posts/ - 2023-04-03T09:03:08+08:00 + 2023-04-03T17:48:42+08:00 /en/ - 2023-04-03T09:06:30+08:00 + 2023-04-03T17:49:38+08:00 /en/tags/adblock/ - 2023-04-03T09:03:08+08:00 + 2023-04-03T17:48:42+08:00 /en/adblock_domain/ - 2023-04-03T09:03:08+08:00 + 2023-04-03T17:48:42+08:00 /en/tags/ - 2023-04-03T09:03:08+08:00 + 2023-04-03T17:48:42+08:00 /en/topposts/ - 2023-04-03T08:59:00+08:00 + 2023-04-03T17:49:38+08:00 /en/changelog/ - 2023-04-03T08:59:00+08:00 + 2023-04-03T17:49:38+08:00 /en/sitemap/ 2023-02-01T09:52:11+08:00 diff --git a/en/topposts/index.xml b/en/topposts/index.xml index 68cfc58e..03941922 100644 --- a/en/topposts/index.xml +++ b/en/topposts/index.xml @@ -64,10 +64,10 @@ github sourceforge powerfolder pagure -Main features Change logs 987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address. +Main features Change logs 988: hosts file to support response headers. +987: enhance hosts file to support domain attributes, such as lifting limitations with empty ip address. 985: Special urls to support shortcut keys such as ctrl-a to ctrl-z. -983: support "hosts" file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name. -975: Bookmarks to support styling for markdown etc. +983: support "hosts" file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name. diff --git a/sitemap.xml b/sitemap.xml index b1e8b546..0433d9c2 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -4,7 +4,7 @@ en/sitemap.xml - 2023-04-03T09:06:30+08:00 + 2023-04-03T17:49:38+08:00