Hi, Tomcat and Jetty are two different containers.
I had to deal with CORS and Geoserver. You can comment everything which is included in Geoserver config files. If you're using Tomcat, you have to configure tomcat's config files for CORS : Tomcat xxx\conf\web.xml Search for the string "filter" or "cors". You should find a filter section to enable cors. Restart tomcat afterwards. Good luck Envoyé à partir d’Outlook<http://aka.ms/weboutlook> ________________________________ De : emmexx <emm...@tiscalinet.it> Envoyé : 5 novembre 2021 07:38 À : geoserver-users@lists.sourceforge.net <geoserver-users@lists.sourceforge.net> Objet : Re: [Geoserver-users] WPS and CORS On 11/5/21 11:44 AM, Andrea Aime wrote: > Stop right there. The instructions say: > "The standalone distributions of GeoServer include the Jetty application > server." > and then instructions on how to enable it for Jetty follow... the > filters in web.xml > do work only in Jetty, not in Tomcat. Sorry but you are a developer and have a greater knowledge of how everything works, to a final user certain nuances in wording can be of no or little meaning. The documentation page about Cors has examples of filters for Jetty and Tomcat and from what I understand one has to use one filter if using Jetty or the other filter if using Tomcat. The web.xml file that is inside geoserver.war has the 2 types of filters commented out, one for Jetty and one for Tomcat and the comment is: "Uncomment following filter to enable CORS in Tomcat. Do not forget the second config block further down." So I don't understand what you mean by "the filters in web.xml do work only in Jetty, not in Tomcat." Thank you maxx _______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users
_______________________________________________ Geoserver-users mailing list Please make sure you read the following two resources before posting to this list: - Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/ - The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users