Skip to content

Commit

Permalink
Merge pull request JakeChampion#526 from satya164/patch-1
Browse files Browse the repository at this point in the history
Ensure cookies aren't sent if `credentials: omit`
  • Loading branch information
mislav authored May 24, 2017
2 parents 8560066 + c389ccd commit 9a0c992
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@

if (request.credentials === 'include') {
xhr.withCredentials = true
} else if (request.credentials === 'omit') {
xhr.withCredentials = false
}

if ('responseType' in xhr && support.blob) {
Expand Down

0 comments on commit 9a0c992

Please sign in to comment.