Moved setting of withCredentials to after the request is opened to fix IE 10 bug.

This commit is contained in:
Sebastian Öberg 2016-06-22 13:51:14 +02:00
parent 42c9cbaa06
commit fb5e628add

View File

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