mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
Moved setting of withCredentials to after the request is opened to fix IE 10 bug.
This commit is contained in:
parent
42c9cbaa06
commit
fb5e628add
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user