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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user