google 地图 v3 的 ngmap 在 Internet Explorer 11 上不起作用

ngmap for google maps v3 does not work on internet explorer 11

我正在尝试在我的应用程序中使用 ngMap,但它在 Internet Explorer 11 上出现此错误:

"0x80070005 - JavaScript runtime error: Access is denied."

但它在 google chrome 中运行没有任何错误。我该如何解决这个错误?

Microsoft support docs 上找到这个:

"You may receive an "Access Denied" or a "Permission Denied" scripting error message when you browse a secure Web site that contains multiple frames"

原因

This issue occurs because Internet Explorer does not correctly evaluate Internet security zones before it finishes processing the .pac file. When this occurs, Internet Explorer may assign a URL to an unexpected zone.

解决方法

To work around this issue, add the Web site that is affected to the Trusted sites security zone in Internet Explorer. To do this, follow these steps: 1. Start Internet Explorer. 2. On the Tools menu, click Internet Options. 3. On the Security tab, click Trusted sites, and then click Sites. 4. In the Add this Web site to the zone box, type the URL of the Web site that is affected, and then click Add. 5. Click OK. Note You can also configure Internet Explorer settings by using Group Policy. F

此外,如果此问题在其他浏览器(如 Chrome 和 Firefox

中仍然存在,请尝试