terrestris / docker-geoserver

A basic docker geoserver image with JAI and marlin renderer running on tomcat
22 stars 21 forks source link

Add CORS support #31

Closed buehner closed 2 years ago

buehner commented 2 years ago

This PR enables (optional) CORS support.

In most scenarios you will probably configure CORS on a proxy level, but in case you want to enable CORS in the geoserver directly, this can be done easily now by setting the new environment variable CORS_ENABLED to true. In that case, the startup.sh script will add the necessary filter definitions to the web.xml.

Origins, methods and headers can (optionally) be configured with these new environment values:

By default, CORS is not enabled!