解决arcgis server跨域问题

时间:2022-07-22 17:03:14
【文件属性】:
文件名称:解决arcgis server跨域问题
文件大小:51KB
文件格式:RAR
更新时间:2022-07-22 17:03:14
arcgis server 解决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");//设置地图服务器已允许跨域
【文件预览】:
tomcat解决跨域
----具体操作.txt(565B)
----web.xml(171KB)
----cors-filter-2.5.jar(31KB)
----java-property-utils-1.9.1.jar(8KB)

网友评论