Skip to content

Commit

Permalink
Merge pull request #1445 from gamebeaker/claudflare_chrome
Browse files Browse the repository at this point in the history
fix_www_subdomain_cookie_issue
  • Loading branch information
gamebeaker authored Aug 25, 2024
2 parents b775bd1 + a914510 commit 57b3b38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/js/HttpClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ class HttpClient {
// get all cookie from the site which use the partitionKey (e.g. cloudflare)
//keep old code for reference in case it changes again
//let cookies = await chrome.cookies.getAll({partitionKey: {topLevelSite: topLevelSite}});
let cookies = await chrome.cookies.getAll({domain: parsedUrl.hostname,partitionKey: {}});
let cookies = await chrome.cookies.getAll({domain: parsedUrl.hostname.replace(/^www./, ""),partitionKey: {}});

//create new cookies for the site without the partitionKey
//cookies without the partitionKey get sent with fetch
Expand Down

0 comments on commit 57b3b38

Please sign in to comment.