We can't feature detect ActiveX in IE11, but we can just call
it and catch whatever error occurs, then try normal XHR.
"globals": {
"jQuery": true,
"define": true,
- "module": true
+ "module": true,
+ "ActiveXObject": true
}
}
], function( jQuery, support ) {
jQuery.ajaxSettings.xhr = function() {
+ // Support: IE9+
+ // IE can't get local files with standard XHR, only ActiveX
+ if ( this.isLocal ) {
+ try {
+ return new ActiveXObject( "Microsoft.XMLHTTP" );
+ } catch( e ) {}
+ }
+
try {
return new XMLHttpRequest();
} catch( e ) {}