Merge pull request #967 from Riksarkivet/moveWithCredentials

Fixed CORS bug in IE 10
This commit is contained in:
Ian Gilman 2016-06-22 11:06:31 -07:00 committed by GitHub
commit eead018195

View File

@ -2119,12 +2119,13 @@ if (typeof define === 'function' && define.amd) {
} }
}; };
if (withCredentials) {
request.withCredentials = true;
}
try { try {
request.open( "GET", url, true ); request.open( "GET", url, true );
if (withCredentials) {
request.withCredentials = true;
}
request.send( null ); request.send( null );
} catch (e) { } catch (e) {
var msg = e.message; var msg = e.message;