解决arcgis server跨域问题:
1、停掉ArcGIS Server的服务。
2、 打开
\framework\runtime\tomcat\conf\web.xml,注册跨域bean
3、lib下拷贝 cors-filter-2.5.jar java-property-utils-1.9.1.jar包
4、启动ArcGIS Server的服务。
5、前台页面js的function内首先加入: esriConfig.request.corsEnabledServers.push("localhost:6080");//设置地图服务器已允许跨域
1