使用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行的注释即可:
使用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行的注释即可: