Skip to content

Commit

Permalink
修复 账户登录问题:登录后显示same hostname,需要增加跳转连接 #34
Browse files Browse the repository at this point in the history
  • Loading branch information
jianjianai committed Aug 16, 2024
1 parent f070ad1 commit 5c9c898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/proxy/bingPorxyWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ const bingProxyLink = newProxyLinkHttp<Env>({
p.startsWith("/sydchat/") ||
p.startsWith("/turing/") ||
p.startsWith("/th") ||
p.startsWith("/Identity/") ||
p.toLocaleLowerCase().startsWith("/identity/") ||
p.startsWith("/hamburger/") ||
p.startsWith("/secure/") ||
p == "/bingufsync" ||
Expand Down Expand Up @@ -229,7 +229,7 @@ const bingProxyLink = newProxyLinkHttp<Env>({
url.searchParams.set("return_url", requrl.replace(porxyOrigin, "https://copilot.microsoft.com"));
}
}
if (p == "/Identity/Dropdown" || p == "/Identity/Hamburger" || p=="/proofs/Add") {
if (p.toLocaleLowerCase().startsWith('/identity/') || p=="/proofs/Add") {
let requrl = url.searchParams.get("ru");
if (requrl) {
url.searchParams.set("ru", requrl.replace(porxyOrigin, "https://copilot.microsoft.com"));
Expand Down

0 comments on commit 5c9c898

Please sign in to comment.