这是我的简单ajax代码,适用于FFX和Chrome,但不适用于IE9。我非常厌恶这个浏览器,我无法表达。这是我的jQuery代码:即使cors = true,jquery ajax也不能在IE9中工作
$.ajax({
type: "GET",
dataType: "xml",
crossDomain: true,
cache:false,
url: "http://somedomain.net/folder/ap/connector.php"
}).success(function (result, payPalresult) {
});
内的document.ready和connector.php具有
Access-Control-Allow-Origin *
,当我在提琴手检查。现在,这个代码工作的FFX和Chrome,但没有Ajax调用在IE9
有史以来我甚至有这样的:
$.support.cors = true;
这有什么,我在这一点上缺少什么?我正在从本地主机发出AJAX请求
的[IE9 jQuery的AJAX与CORS返回 “访问被拒绝”(可能的复制http://stackoverflow.com/questions/10232017/ie9-jquery-ajax-with-cors-returns-access -被拒绝) – Maks3w 2015-12-29 19:40:54