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

后端 未结 4 1848
滥情空心
滥情空心 2020-12-10 09:56

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

相关标签:
4条回答
  • 2020-12-10 10:46

    I run into this issue when behind a SonicWall VPN at work. My solution is to add the domain to the trusted list of sites under IE's Internet Options > Security > Trusted Sites menu; this will impact Edge as well since it seems to use IE's security settings in this regard.

    0 讨论(0)
  • 2020-12-10 10:50

    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.

    0 讨论(0)
  • 2020-12-10 10:57

    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/

    0 讨论(0)
  • 2020-12-10 11:01

    As others have mentioned, CORS came into play. In my case, IE was sending an additional header to the server (Content-Type) that the other browsers weren't, and this header wasn't allowed by my policy. Adding the header to the policy fixed the issue.

    0 讨论(0)
提交回复
热议问题