[英]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.