mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Fixed axios promise rejection for cors api calls in IE9
This commit is contained in:
+1
-1
@@ -58,7 +58,7 @@ module.exports = function xhrAdapter(resolve, reject, config) {
|
|||||||
|
|
||||||
// Resolve or reject the Promise based on the status
|
// Resolve or reject the Promise based on the status
|
||||||
((response.status >= 200 && response.status < 300) ||
|
((response.status >= 200 && response.status < 300) ||
|
||||||
(!('status' in request) && response.responseText) ?
|
(!('status' in request) && request.responseText) ?
|
||||||
resolve :
|
resolve :
|
||||||
reject)(response);
|
reject)(response);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user