Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ajax request "Access is denied" in IE

I use ajax request in order to check response of websites as follow,

$.ajax ({
    url: 'https://www.example.com',
    cache: false,
    success : function() {
        alert(new Date() - start)               
    }, 
}) 

It works on my local pc in all browsers. When I put it on the server, it works in Chrome and Firefox but not in IE8.

I get the error: "Access is denied" jquery.min.js

Why am I getting this error?

like image 771
user1874941 Avatar asked Dec 12 '12 15:12

user1874941


1 Answers

For my case the problem is resulted because of compatibility mode. I am in intranet and internet explorer is running with compatibility mode. I added following tag and this solved all my problems. It forces IE to not use compatibility mode.

<meta http-equiv="X-UA-Compatible" content="IE=Edge" >
like image 176
user1874941 Avatar answered Oct 22 '22 04:10

user1874941