Skip to content

Commit

Permalink
fix: fix ignore set withCredentials false (#2582)
Browse files Browse the repository at this point in the history
  • Loading branch information
xchunzhao authored and yasuf committed Dec 9, 2019
1 parent 13c948e commit dc4bc49
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 dc4bc49

Please sign in to comment.