1

I am running a Geoserver2.12 with tomcat7 in a container. I am trying to enable CORS inside the web.xml file of my geoserver installation but whenever I add these lines in the file:

<filter>
  <filter-name>CorsFilter</filter-name>
  <filter-class>org.apache.catalina.filters.CorsFilter</filter-class>
</filter>
<filter-mapping>
  <filter-name>CorsFilter</filter-name>
  <url-pattern>/*</url-pattern>
</filter-mapping>

and restart my tomcat then I am not able to access the geoserver (getting a 404) error. Any ideas what is causing this error?

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.