From fb5e628addf6608f0dec05ccf270cc7ab1952d7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20=C3=96berg?= Date: Wed, 22 Jun 2016 13:51:14 +0200 Subject: [PATCH] Moved setting of withCredentials to after the request is opened to fix IE 10 bug. --- src/openseadragon.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/openseadragon.js b/src/openseadragon.js index 50521d6a..06f6d189 100644 --- a/src/openseadragon.js +++ b/src/openseadragon.js @@ -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;