mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
fix: fix ignore set withCredentials false (#2582)
This commit is contained in:
+2
-2
@@ -129,8 +129,8 @@ module.exports = function xhrAdapter(config) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Add withCredentials to request if needed
|
// Add withCredentials to request if needed
|
||||||
if (config.withCredentials) {
|
if (!utils.isUndefined(config.withCredentials)) {
|
||||||
request.withCredentials = true;
|
request.withCredentials = !!config.withCredentials;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add responseType to request if needed
|
// Add responseType to request if needed
|
||||||
|
|||||||
Reference in New Issue
Block a user