2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-05 16:42:32 +03:00

IE9 fix for cors api calls are timing out prematurely

This commit is contained in:
goyalr
2016-02-29 15:48:12 -05:00
parent 29f5b9b66d
commit 1696d1ca55
+4
View File
@@ -35,6 +35,10 @@ module.exports = function xhrAdapter(resolve, reject, config) {
// Set the request timeout in MS
request.timeout = config.timeout;
// For IE 9 CORS support.
request.onprogress = function() {};
request.ontimeout = function() {};
// Listen for ready state
request.onload = function handleLoad() {
if (!request) {