简体   繁体   中英

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. I was trying to solve it by using window.XDomainRequest but it's also not available in 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

Or this:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM