Skip to content

Commit

Permalink
Don't include credentials when making authed request
Browse files Browse the repository at this point in the history
  • Loading branch information
icidasset committed Jul 24, 2022
1 parent 465a151 commit 9502e17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Javascript/Workers/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ function newRequestWithAuth(event, urlWithoutToken, authToken, mode) {
const newRequest = new Request(new Request(urlWithoutToken, event.request), {
headers: newHeaders,
mode: mode || "cors",
cache: "no-cache",
credentials: "include"
cache: "no-cache"
})

event.respondWith(fetch(newRequest))
Expand Down

0 comments on commit 9502e17

Please sign in to comment.