fixed CORS in IE9

This commit is contained in:
javi 2013-11-22 15:40:23 +01:00
parent 69db609a25
commit a213170a8c

View File

@ -52,6 +52,7 @@
&& /^(http(s)?:)?\/\//.test(url)) request = XDomainRequest;
var req = new request();
req.open(options.method, url, true);
function respond() {
@ -69,7 +70,6 @@
req.onprogress = function() {};
req.open(options.method, url, true);
//req.responseType = 'arraybuffer';
if (options.data) {
req.setRequestHeader("Content-type", "application/json");