Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve the error "SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied." in IE

In my web site, I created a map with ALK Maps, I display the points (Markers) and roads (routings) and all this works fine in Firefox and Chrome, but in IE I display the map and points, but when I go to the road I get the error:

"SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied."

  I found a solution: security area (Internet Options> Security) make ENABLE The Following setting: Miscellaneous> Access data sources across domains.

Is there a solution to not ask customers to my website to do this configuration?

like image 819
Jawadovic3814 Avatar asked Apr 27 '15 18:04

Jawadovic3814


2 Answers

I don't think it's a good idea to ask your customers to disable this configuration at all. Remember that enabling and making this change does not only apply to your website but to other websites as well.

There's a huge security reason why it is disabled in Internet and Restricted Sites zones by default and it could make your customers vulnerable to different types of CORS (Cross Origin Resource Sharing) attacks

Rather than making changes on the browser level, try to enable CORS in your client/server side code or infrastructure:

http://enable-cors.org/

http://www.html5rocks.com/en/tutorials/cors/

like image 121
securecodeninja Avatar answered Oct 10 '22 16:10

securecodeninja


We were also running into this issue and the problem was the target URL was exceeding the maximum length of ~2,000 characters in IE11.

I agree with @user145400 that if it works in Chrome and Firefox it is very likely that CORS is already correctly enabled.

like image 27
Bugs Bunny Avatar answered Oct 10 '22 18:10

Bugs Bunny