如何解决错误“SCRIPT7002:XMLHttpRequest:网络错误0x80070005,访问被拒绝”。在IE [英] How to solve the error "SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied." in IE

查看:17433
本文介绍了如何解决错误“SCRIPT7002:XMLHttpRequest:网络错误0x80070005,访问被拒绝”。在IE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站上,我创建了一个带有ALK地图的地图,我显示的点(标记)和道路(路线),所有这些在Firefox和Chrome都可以正常工作,但在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:网络错误0x80070005,访问被拒绝

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

我发现一个解决方案:安全区域(Int​​ernet选项>安全)make ENABLE以下设置:其他>跨域访问数据源。

  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?

推荐答案

我不认为这是一个好主意,请您的客户完全禁用此配置。请记住,启用和进行此更改不仅适用于您的网站,也适用于其他网站。

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.

默认情况下,在互联网和受限网站区域中禁用它的一个巨大的安全原因,它可能使您的客户容易受到不同类型的CORS(跨源资源共享)攻击

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

不要在浏览器级别上进行更改,请尝试在客户端/服务器端代码或基础设施中启用CORS:

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/

这篇关于如何解决错误“SCRIPT7002:XMLHttpRequest:网络错误0x80070005,访问被拒绝”。在IE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆