CORS - Tomcat - Geoserver

后端 未结 4 1400
南方客
南方客 2020-12-05 10:00

All, I am trying to get CORS enabled on Tomcat 7.0.52 for Geoserver.

I modified web.xml in conf in tomcat, as specified in http://tomcat.apache.org/tomcat-7.0-doc/co

4条回答
  •  借酒劲吻你
    2020-12-05 10:37

    I needed to add the following to the CorsFilter to make sure that the preflight 'OPTIONS' request was allowed

    
      cors.allowed.methods
      GET,POST,HEAD,OPTIONS,PUT
    
    

提交回复
热议问题