Skip to content

Commit

Permalink
Update HttpClient.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiradien committed Sep 11, 2024
1 parent b72e029 commit 0c064d8
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 @@ -222,10 +222,10 @@ class HttpClient {
let cookies = "";
if (!util.isFirefox()) {
cookies = await chrome.cookies.getAll({domain: urlparts[urlparts.length-2]+"."+urlparts[urlparts.length-1],partitionKey: {}});
cookies = cookies.filter(item => item.session || item.sameSite == "no_restriction");
}else{
cookies = await browser.cookies.getAll({domain: urlparts[urlparts.length-2]+"."+urlparts[urlparts.length-1],partitionKey: {}});
}
cookies = cookies.filter(item => item.partitionKey != undefined);
//create new cookies for the site without the partitionKey
//cookies without the partitionKey get sent with fetch
cookies.forEach(element => chrome.cookies.set({
Expand Down

0 comments on commit 0c064d8

Please sign in to comment.