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