Skip to content

Commit

Permalink
Fix broken ChatGPT login by GPT-4
Browse files Browse the repository at this point in the history
  • Loading branch information
sunner committed Apr 25, 2023
1 parent 8155053 commit ee03c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function createWindow() {
// To depress the 403 error
if (url === "https://bard.google.com/faq") {
requestHeaders["sec-fetch-mode"] = "navigate";
} else if (url.search("BardChatUi")) {
} else if (url.includes("BardChatUi")) {
requestHeaders["origin"] = "https://bard.google.com";
requestHeaders["sec-fetch-site"] = "same-origin";
}
Expand Down

0 comments on commit ee03c0b

Please sign in to comment.