Skip to content

Commit

Permalink
refactor: omit credentials from fetch
Browse files Browse the repository at this point in the history
exclude credentials from fetch
  • Loading branch information
mdolr authored Nov 17, 2023
2 parents 366f6e3 + 06417c4 commit d572b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/background/auxiliary.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ chrome.runtime.onMessage.addListener((req, sender, sendResponse) => {

// If the request isn't cached
else {
fetch(req.data.url)
fetch(req.data.url, {credentials: 'omit'})
.then((data) => { return req.data.noJSON ? data.text() : data.json(); })
.then((data) => {
res.data = data;
Expand Down

0 comments on commit d572b2d

Please sign in to comment.