From 11daaf1b1ff710c7b4d3d1cd289826c238e111c6 Mon Sep 17 00:00:00 2001 From: SokWith <129967025+SokWith@users.noreply.github.com> Date: Thu, 13 Jun 2024 15:19:44 +0800 Subject: [PATCH] Update _middleware.js --- functions/_middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/_middleware.js b/functions/_middleware.js index 2c16600..d39ff41 100644 --- a/functions/_middleware.js +++ b/functions/_middleware.js @@ -57,7 +57,7 @@ async function handleRequest(request, env,ctx) { if (p.startsWith("/sydney/")) { url2.hostname = "sydney.bing.com"; } - if (p == "/" || p.startsWith("/rp/") || p.startsWith("/fd/") || p.startsWith("/rewardsapp/") || p.startsWith("/notifications/") || p.startsWith("/sa/") || p.startsWith("/rs/") || p.startsWith("/sharing/") || p.startsWith("/sydchat/") || p.startsWith("/turing/") || p.startsWith("/th") || p.startsWith("/Identity/") || p.startsWith("/hamburger/") || p.startsWith("/secure/") || p == "/bingufsync" || p == "/passport.aspx" || p.startsWith("/images/") || p.startsWith("/idp/") || p.startsWith("/cdx/") || p.startsWith("/pwa/") || p.startsWith("/videos/")) { + if (p == "/" || p.startsWith("/rp/") || p == "/favicon.ico" || p.startsWith("/fd/") || p.startsWith("/rewardsapp/") || p.startsWith("/notifications/") || p.startsWith("/sa/") || p.startsWith("/rs/") || p.startsWith("/sharing/") || p.startsWith("/sydchat/") || p.startsWith("/turing/") || p.startsWith("/th") || p.startsWith("/Identity/") || p.startsWith("/hamburger/") || p.startsWith("/secure/") || p == "/bingufsync" || p == "/passport.aspx" || p.startsWith("/images/") || p.startsWith("/idp/") || p.startsWith("/cdx/") || p.startsWith("/pwa/") || p.startsWith("/videos/")) { url2.hostname = "copilot.microsoft.com"; } if (p == "/GetCredentialType.srf" || p.startsWith("/ppsecure/") || p == "/login.srf" || p == "/GetOneTimeCode.srf" || p == "/GetSessionState.srf" || p == "/GetExperimentAssignments.srf" || p == "/logout.srf") {