如何解决错误“SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied."在浏览器中 [英] How to solve the error "SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied." in IE

查看:57
本文介绍了如何解决错误“SCRIPT7002: XMLHttpRequest: Network Error 0x80070005, Access is denied."在浏览器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的网站中,我使用 ALK Maps 创建了一个地图,我显示了点(标记)和道路(路线),所有这些在 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 选项>安全)使启用以下设置:杂项>跨域访问数据源.

  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.

默认情况下在 Internet 和受限站点区域中禁用它有一个巨大的安全原因,它可能使您的客户容易受到不同类型的 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: Network Error 0x80070005, Access is denied."在浏览器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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