From ca88111f3cd08818e6e0601b30721a46bc4f4e7e Mon Sep 17 00:00:00 2001 From: Lou Wolford Date: Fri, 8 Jan 2016 11:20:09 -0500 Subject: [PATCH] fixes cross domain issue regarding IE 10 and below --- xapiwrapper.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xapiwrapper.js b/xapiwrapper.js index 798a8ba..e9035ad 100644 --- a/xapiwrapper.js +++ b/xapiwrapper.js @@ -951,7 +951,8 @@ if ( !Date.prototype.toISOString ) { } //If it's not cross domain or we're not using IE, use the usual XmlHttpRequest - if (!xDomainRequest || typeof(XDomainRequest) === 'undefined') { + var windowsVersionCheck = window.XDomainRequest && (window.XMLHttpRequest && new XMLHttpRequest().responseType === undefined); + if (!xDomainRequest || windowsVersionCheck === undefined || windowsVersionCheck===false) { xhr = new XMLHttpRequest(); xhr.open(method, url, callback != null); for(var headerName in headers){