使用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行的註釋即可: