我只是在IE中遇到一个HTTPS Ajax调用的问题.IE似乎认为我正在提出跨域请求,但我不是.从页面调用以下代码https://mydomain/customer_profile.php:
$.ajax({
type: 'post',
url: 'https://mydomain/ajax/retrieve_transaction_details.php',
data: /* my data is here */,
success: function(response){
// do something with the response
},
error: function (xhr, ajaxOptions, thrownError){
alert(xhr.status);
alert(thrownError);
}
});
Run Code Online (Sandbox Code Playgroud)
除IE之外,此请求在每个浏览器中都能正常工作.在IE中,错误函数返回"错误:访问被拒绝".就像我说的那样,我对此完全感到困惑,所以任何见解或想法都会很棒.