fixed CORS in IE9
This commit is contained in:
parent
69db609a25
commit
a213170a8c
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user