diff --git a/build_data/web.xml b/build_data/web.xml index 511cc3a6..3f1ccf96 100644 --- a/build_data/web.xml +++ b/build_data/web.xml @@ -596,25 +596,36 @@ so the entrypoint script can deactivate Cors settings if DISABLE_CORS is set --> - CorsFilter - org.apache.catalina.filters.CorsFilter - - cors.allowed.origins - * - - - cors.allowed.headers - Content-Type,X-Requested-With,accept,Access-Control-Request-Method,Access-Control-Request-Headers,If-Modified-Since,Range,Origin,Authorization - - - cors.exposed.headers - Access-Control-Allow-Origin,Access-Control-Allow-Credentials - + CorsFilter + org.apache.catalina.filters.CorsFilter + + cors.allowed.origins + * + + + cors.allowed.methods + GET,POST,HEAD,OPTIONS,PUT + + + cors.allowed.headers + Content-Type,X-Requested-With,accept,Origin,Access-Control-Request-Method,Access-Control-Request-Headers,If-Modified-Since,Range,Authorization + + + cors.exposed.headers + Access-Control-Allow-Origin,Access-Control-Allow-Credentials + + + cors.support.credentials + true + + + cors.preflight.maxage + 10 + - - CorsFilter - /* + CorsFilter + /*