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
|
@ -68,6 +68,11 @@
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>which will make all git repositories on the domain visitable as websites with raw file access url.</p>
|
<p>which will make all git repositories on the domain visitable as websites with raw file access url.</p>
|
||||||
|
<ul>
|
||||||
|
<li>response headers, separeded by ';', Ex.:<br>
|
||||||
|
Access-Control-Allow-Origin;*;Access-Control-Allow-Credentials;true mybing2.xn--xyza.top</li>
|
||||||
|
</ul>
|
||||||
|
<p>which makes "mybing2.xn--xyza.top" to accept CORS requests with cookies.</p>
|
||||||
<p><a href="file:///data/data/info.torapp.uweb/files/default.hosts">"default.hosts"</a> 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.</p>
|
<p><a href="file:///data/data/info.torapp.uweb/files/default.hosts">"default.hosts"</a> 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.</p>
|
||||||
<p>Each line of the hosts file has the following format:<br>
|
<p>Each line of the hosts file has the following format:<br>
|
||||||
[rootDomain][space][regex for domain prefix before rootDomain][space][regex for the whole url without "http(s)://"]<br>
|
[rootDomain][space][regex for domain prefix before rootDomain][space][regex for the whole url without "http(s)://"]<br>
|
||||||
|
@ -75,7 +80,7 @@ The first part [rootDomain] is required and the others are optional. regex is ja
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<p>Last Modified: 3 April 2023<br>
|
<p>Last Modified: 3 April 2023<br>
|
||||||
enhance hosts file to add attributes to domains<br>
|
bingAI to support cors with cookies<br>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
@ -51,7 +51,8 @@
|
||||||
<p><a href="https://releases.pagure.org/uweb/">pagure</a></p>
|
<p><a href="https://releases.pagure.org/uweb/">pagure</a></p>
|
||||||
<h4 id="main-featuresreadmeindexhtml"><a href="../readme/index.html">Main features</a></h4>
|
<h4 id="main-featuresreadmeindexhtml"><a href="../readme/index.html">Main features</a></h4>
|
||||||
<h4 id="change-logs">Change logs</h4>
|
<h4 id="change-logs">Change logs</h4>
|
||||||
<p>987: enhance <a href="../adblock_domain/index.html">hosts</a> file to support domain attributes, such as lifting limitations with empty ip address.<br>
|
<p>988: <a href="../adblock_domain/index.html">hosts</a> file to support response headers.<br>
|
||||||
|
987: enhance <a href="../adblock_domain/index.html">hosts</a> file to support domain attributes, such as lifting limitations with empty ip address.<br>
|
||||||
985: <a href="../links/index.html">Special urls</a> to support shortcut keys such as ctrl-a to ctrl-z.<br>
|
985: <a href="../links/index.html">Special urls</a> to support shortcut keys such as ctrl-a to ctrl-z.<br>
|
||||||
983: support <a href="../adblock_domain/index.html">"hosts"</a> file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.<br>
|
983: support <a href="../adblock_domain/index.html">"hosts"</a> file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.<br>
|
||||||
975: <a href="../bookmark/index.html">Bookmarks</a> to support styling for markdown etc.<br>
|
975: <a href="../bookmark/index.html">Bookmarks</a> to support styling for markdown etc.<br>
|
||||||
|
@ -78,7 +79,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<p>Last Modified: 3 April 2023<br>
|
<p>Last Modified: 3 April 2023<br>
|
||||||
enhance hosts file to add attributes to domains<br>
|
bingAI to support cors with cookies<br>
|
||||||
<pre></pre>
|
<pre></pre>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
|
@ -196,10 +196,10 @@ github
|
||||||
sourceforge
|
sourceforge
|
||||||
powerfolder
|
powerfolder
|
||||||
pagure
|
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.
|
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
|
||||||
983: support &quot;hosts&quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.
|
983: support &quot;hosts&quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.</description>
|
||||||
975: Bookmarks to support styling for markdown etc.</description>
|
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
|
|
|
@ -439,7 +439,7 @@ async function createChat(theChatType) {
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
await copyCookies(magicUrl);
|
await copyCookies(magicUrl);
|
||||||
let res = await fetch(URLTrue(magicUrl, 'Create'));
|
let res = await fetch(URLTrue(magicUrl, 'Create'),{credentials: 'include'});
|
||||||
let resjson = await res.json();
|
let resjson = await res.json();
|
||||||
if (!resjson.result) {
|
if (!resjson.result) {
|
||||||
console.warn(resjson);
|
console.warn(resjson);
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
if("https://www.bing.com/turing/conversation/create"==url){
|
if("https://www.bing.com/turing/conversation/create"==url){
|
||||||
url = "https://mybing2.xn--xyza.top/Create";
|
url = "https://mybing2.xn--xyza.top/Create";
|
||||||
options = {
|
options = {
|
||||||
|
credentials: 'include',
|
||||||
headers:{},
|
headers:{},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
xmlns:xhtml="http://www.w3.org/1999/xhtml">
|
||||||
<url>
|
<url>
|
||||||
<loc>/en/_posts/</loc>
|
<loc>/en/_posts/</loc>
|
||||||
<lastmod>2023-04-03T09:03:08+08:00</lastmod>
|
<lastmod>2023-04-03T17:48:42+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="zh"
|
hreflang="zh"
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
/>
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/</loc>
|
<loc>/en/</loc>
|
||||||
<lastmod>2023-04-03T09:06:30+08:00</lastmod>
|
<lastmod>2023-04-03T17:49:38+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="zh"
|
hreflang="zh"
|
||||||
|
@ -55,10 +55,10 @@
|
||||||
/>
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/tags/adblock/</loc>
|
<loc>/en/tags/adblock/</loc>
|
||||||
<lastmod>2023-04-03T09:03:08+08:00</lastmod>
|
<lastmod>2023-04-03T17:48:42+08:00</lastmod>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/adblock_domain/</loc>
|
<loc>/en/adblock_domain/</loc>
|
||||||
<lastmod>2023-04-03T09:03:08+08:00</lastmod>
|
<lastmod>2023-04-03T17:48:42+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="zh"
|
hreflang="zh"
|
||||||
|
@ -71,7 +71,7 @@
|
||||||
/>
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/tags/</loc>
|
<loc>/en/tags/</loc>
|
||||||
<lastmod>2023-04-03T09:03:08+08:00</lastmod>
|
<lastmod>2023-04-03T17:48:42+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="zh"
|
hreflang="zh"
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
/>
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/topposts/</loc>
|
<loc>/en/topposts/</loc>
|
||||||
<lastmod>2023-04-03T08:59:00+08:00</lastmod>
|
<lastmod>2023-04-03T17:49:38+08:00</lastmod>
|
||||||
<xhtml:link
|
<xhtml:link
|
||||||
rel="alternate"
|
rel="alternate"
|
||||||
hreflang="zh"
|
hreflang="zh"
|
||||||
|
@ -194,7 +194,7 @@
|
||||||
/>
|
/>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/changelog/</loc>
|
<loc>/en/changelog/</loc>
|
||||||
<lastmod>2023-04-03T08:59:00+08:00</lastmod>
|
<lastmod>2023-04-03T17:49:38+08:00</lastmod>
|
||||||
</url><url>
|
</url><url>
|
||||||
<loc>/en/sitemap/</loc>
|
<loc>/en/sitemap/</loc>
|
||||||
<lastmod>2023-02-01T09:52:11+08:00</lastmod>
|
<lastmod>2023-02-01T09:52:11+08:00</lastmod>
|
||||||
|
|
|
@ -64,10 +64,10 @@ github
|
||||||
sourceforge
|
sourceforge
|
||||||
powerfolder
|
powerfolder
|
||||||
pagure
|
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.
|
985: Special urls to support shortcut keys such as ctrl-a to ctrl-z.
|
||||||
983: support &quot;hosts&quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.
|
983: support &quot;hosts&quot; file domain name resolving (no root needed), only single space allowed as separator for ip address and domain name.</description>
|
||||||
975: Bookmarks to support styling for markdown etc.</description>
|
|
||||||
</item>
|
</item>
|
||||||
|
|
||||||
<item>
|
<item>
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
<sitemap>
|
<sitemap>
|
||||||
<loc>en/sitemap.xml</loc>
|
<loc>en/sitemap.xml</loc>
|
||||||
|
|
||||||
<lastmod>2023-04-03T09:06:30+08:00</lastmod>
|
<lastmod>2023-04-03T17:49:38+08:00</lastmod>
|
||||||
|
|
||||||
</sitemap>
|
</sitemap>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue