mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
IE9 fix for cors api calls are timing out prematurely
This commit is contained in:
@@ -35,6 +35,10 @@ module.exports = function xhrAdapter(resolve, reject, config) {
|
|||||||
// Set the request timeout in MS
|
// Set the request timeout in MS
|
||||||
request.timeout = config.timeout;
|
request.timeout = config.timeout;
|
||||||
|
|
||||||
|
// For IE 9 CORS support.
|
||||||
|
request.onprogress = function() {};
|
||||||
|
request.ontimeout = function() {};
|
||||||
|
|
||||||
// Listen for ready state
|
// Listen for ready state
|
||||||
request.onload = function handleLoad() {
|
request.onload = function handleLoad() {
|
||||||
if (!request) {
|
if (!request) {
|
||||||
|
|||||||
Reference in New Issue
Block a user