相关疑难解决方法(0)

IE中的HTTPS Ajax请求问题(非交叉域)

我只是在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中,错误函数返回"错误:访问被拒绝".就像我说的那样,我对此完全感到困惑,所以任何见解或想法都会很棒.

php ajax jquery internet-explorer cross-domain

7
推荐指数
1
解决办法
5002
查看次数

标签 统计

ajax ×1

cross-domain ×1

internet-explorer ×1

jquery ×1

php ×1