IE 11 error - Access is denied - XMLHttpRequest

梦想的初衷 提交于 2019-11-30 19:24:31

This question appears to be getting a lot of views, so just in case anybody was wondering, I solved this problem by using a setTimeout() on the original AJAX call. E.g:

setTimeout(function() {
        ajaxRequest('save_mark','save_mark_completed',[60962,1284,5]) 
    }, 1);

I'm assuming it's some kind of bug in IE. Just 1 millisecond was all it needed!

setTimeout(function() {
        ajaxRequest('save_mark','save_mark_completed',[60962,1284,5]) 
    }, 1);

This did work for me for the first call after page load but later calls again started to show Access is denied error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!