访问被拒绝在IE中的https错误。同时执行ajax调用(对我的server1)有另一个Ajax调用的响应当我的Ajax调用url在http上。通过实现cors我也能够在http.Tried JSONP上执行,但是它会执行我的响应,直到它找到另一个ajax调用。怎么解决 ?下面 是MYSERVER1访问被拒绝错误
alert('aaa');
var xhr2 = new XMLHttpRequest();
xhr2.open('GET', 'http://myserver2.com', true);
xhr2.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
xhr2.send();
xhr2.onload = function() {
alert('fff');
var appCreds = xhr2.responseText;
alert(appCreds);
};
alert('xxx');
阅读此:http://stackoverflow.com/questions/22098259/access-denied-in-ie-10-and-11-when-ajax-target-is-localhost \ – Amy 2014-10-10 07:10:56