Skip to content

Commit

Permalink
fix_www_subdomain_cookie_issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gamebeaker committed Aug 25, 2024
1 parent 78b441e commit a914510
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 a914510

Please sign in to comment.