mirror of
https://github.com/tenrok/axios.git
synced 2026-06-05 16:42:32 +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
|
||||
if (config.withCredentials) {
|
||||
request.withCredentials = true;
|
||||
if (!utils.isUndefined(config.withCredentials)) {
|
||||
request.withCredentials = !!config.withCredentials;
|
||||
}
|
||||
|
||||
// Add responseType to request if needed
|
||||
|
||||
Reference in New Issue
Block a user