fixed CORS in IE9
This commit is contained in:
parent
69db609a25
commit
a213170a8c
@ -52,6 +52,7 @@
|
|||||||
&& /^(http(s)?:)?\/\//.test(url)) request = XDomainRequest;
|
&& /^(http(s)?:)?\/\//.test(url)) request = XDomainRequest;
|
||||||
|
|
||||||
var req = new request();
|
var req = new request();
|
||||||
|
req.open(options.method, url, true);
|
||||||
|
|
||||||
|
|
||||||
function respond() {
|
function respond() {
|
||||||
@ -69,7 +70,6 @@
|
|||||||
|
|
||||||
req.onprogress = function() {};
|
req.onprogress = function() {};
|
||||||
|
|
||||||
req.open(options.method, url, true);
|
|
||||||
//req.responseType = 'arraybuffer';
|
//req.responseType = 'arraybuffer';
|
||||||
if (options.data) {
|
if (options.data) {
|
||||||
req.setRequestHeader("Content-type", "application/json");
|
req.setRequestHeader("Content-type", "application/json");
|
||||||
|
Loading…
Reference in New Issue
Block a user