Skip to content

Commit

Permalink
Allow setting of withCredentials to false (solves #1837)
Browse files Browse the repository at this point in the history
  • Loading branch information
B.J. Rossiter committed Dec 5, 2019
1 parent a17c70c commit 7b11bdc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/adapters/xhr.js
Expand Up @@ -129,8 +129,8 @@ module.exports = function xhrAdapter(config) {
}

// Add withCredentials to request if needed
if (config.withCredentials) {
request.withCredentials = true;
if (!utils.isUndefined(config.withCredentials)) {
request.withCredentials = config.withCredentials;
}

// Add responseType to request if needed
Expand Down

0 comments on commit 7b11bdc

Please sign in to comment.