GeoServer2.13.0跨域web.xml配置

使用GeoServer2.13.0的时候,出现错误:

No ‘Access-Control-Allow-Origin’ header is present on the requested resource. 

通过修改GeoServer的web.xml文件即可解决,文件路径:

X:\Program Files (x86)\GeoServer 2.13.0\webapps\geoserver\WEB-INF\web.xml

去掉162行及178行的注释即可:

转载自:https://blog.csdn.net/c8u90/article/details/80676450

You may also like...