简体   繁体   English

Arcgis JavaScript库的Internet Explorer 10问题

[英]Internet explorer 10 issues with arcgis javascript library

I am using javascript api from arcgis to have map functionality in my application. 我正在使用来自arcgis的javascript api在我的应用程序中具有地图功能。 the script works fine in all browsers(google chrome, firefox, ie7,8,9). 该脚本在所有浏览器(google chrome,firefox,ie7、8、9)中均可正常运行。 But throws access denied errors in IE 10 and errors look like below. 但是在IE 10中抛出拒绝访问错误,并且错误如下所示。 i am not posting any code due to security reasons, and the problem is only with IE 10, so this must be a browser specific issue. 由于安全原因,我没有发布任何代码,问题仅在于IE 10,因此这一定是浏览器特定的问题。 Has anyone ran into this issue before? 有人遇到过这个问题吗?

Error: Access is denied.
Error: Access is denied.
   k (http://js.arcgis.com/3.11/:161:153)
   at xhr (http://js.arcgis.com/3.11/:195:207)
   at xhrGet (http://js.arcgis.com/3.11/:195:483)
   at y (http://js.arcgis.com/3.11/:876:354)
   at c (http://js.arcgis.com/3.11/:878:207)
   at x (http://js.arcgis.com/3.11/:884:43)
   at addressToLocations (http://js.arcgis.com/3.11/esri/tasks/locator.js:8:26)
   at _performTask (http://js.arcgis.com/3.11/esri/dijit/Geocoder.js:30:238)
   at _query (http://js.arcgis.com/3.11/esri/dijit/Geocoder.js:26:47)
   at _findQuery (http://js.arcgis.com/3.11/esri/dijit/Geocoder.js:19:440) 

CORS is happening and IE might be preventing further requests. CORS正在发生,IE可能阻止了进一步的请求。

Can you try working with a local proxy rather than one hosted on arcgis.com instead? 您可以尝试使用本地代理而不是使用arcgis.com上的本地代理吗?

You may wish to use //js.arcgis.com which should then use the request connection (http/https) scheme. 您可能希望使用//js.arcgis.com,然后再使用请求连接(http / https)方案。

Also note you have options for configuring requests to use a local proxy and this is documented on the ESRI site: 还要注意,您具有用于配置使用本地代理的请求的选项,这在ESRI站点上有记录:

https://developers.arcgis.com/javascript/jshelp/ags_proxy.html https://developers.arcgis.com/javascript/jshelp/ags_proxy.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM