简体   繁体   English

IE11中的Ajax错误“错误:访问被拒绝。”。 window.XDomainRequest对象不可用

[英]Ajax error “Error: Access is denied.” in IE11. window.XDomainRequest object is not available

I am getting error "Error: Access is denied." 我收到错误消息“错误:访问被拒绝。” in IE11 during ajax request. 在Ajax请求期间在IE11中使用。 I was trying to solve it by using window.XDomainRequest but it's also not available in IE11. 我试图通过使用window.XDomainRequest解决它,但它在IE11中也不可用。 Kindly help me. 请帮助我。

 $.ajax({
    type: "GET",
    cache: false,
    crossDomain: false,
    url: "dataFile.xml",
    dataType: "xml",
    success: function(xml) {
        alert('success')
    },
    error: function(ex) {
        alert(ex.statusText); //Giving error "Error: Access is denied." 
    }
});

Probably by now (more than a year after) you have found a solution, but just in case... As others have noted you don't write enough details about the issue, but since I encountered just now something similar and I was searching for a solution, maybe these will help: 大概到现在(一年后),您已经找到了解决方案,但以防万一...正如其他人指出的那样,您尚未就该问题写出足够的详细信息,但是由于我刚遇到类似的问题,因此我一直在寻找对于解决方案,也许这些会有所帮助:

https://davidwalsh.name/iframe-permission-denied https://davidwalsh.name/iframe-permission-denied

Or this: 或这个:

https://support.microsoft.com/en-us/kb/908356 https://support.microsoft.com/zh-CN/kb/908356

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 XDomainRequest上的访问被拒绝错误 - Access is denied error on XDomainRequest XDomainRequest open(“ get”,url)在IE中给出“拒绝访问”错误 - XDomainRequest open(“get”, url) gives Access Denied error in IE IE显示错误:resizeTo()函数的“访问被拒绝。” - IE shows error: “Access is denied.” for resizeTo() function IE11中使用提取API的“ SCRIPT7002:XMLHttpRequest:网络错误0x80070005,访问被拒绝。” - “SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied.” in IE11 with fetch API 用于XML的XDomainRequest(CORS)导致IE8 / IE9中的“访问被拒绝”错误 - XDomainRequest (CORS) for XML causing “Access is denied” error in IE8 / IE9 IE 11错误 - 访问被拒绝 - XMLHttpRequest - IE 11 error - Access is denied - XMLHttpRequest IE11中的访问被拒绝错误 - Access is denied error in IE11 使用XDomainRequest调用跨域AJAX时权限被拒绝错误 - Permission denied error when invoking cross domain AJAX using XDomainRequest 严格模式错误仅在IE11中。 我可以仅为此浏览器取消严格模式吗? - Strict mode error only in IE11. Can I take off strict mode just for this browser? 未捕获(承诺):错误:在 IE11 中拒绝访问 - Uncaught (In Promise): Error: Access Denied in IE11
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM