From abdce35760aa0481f86ee0583499e488c17f111a Mon Sep 17 00:00:00 2001 From: Daniel Date: Tue, 19 Dec 2023 13:56:25 +0100 Subject: [PATCH] only for dev! --- config/packages/nelmio_cors.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/config/packages/nelmio_cors.yaml b/config/packages/nelmio_cors.yaml index 1ef2242..9185145 100644 --- a/config/packages/nelmio_cors.yaml +++ b/config/packages/nelmio_cors.yaml @@ -2,12 +2,18 @@ nelmio_cors: defaults: origin_regex: true # allow_origin: ['%env(CORS_ALLOW_ORIGIN)%'] - allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE'] +# allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE'] # allow_headers: ['Content-Type', 'Authorization'] # expose_headers: ['Link'] expose_headers: ['*'] allow_origin: [ '*' ] allow_headers: [ '*' ] + allow_methods: ['GET', 'OPTIONS', 'POST', 'PATCH', 'DELETE'] max_age: 3600 paths: '^/': null +# '^/api/': +# allow_origin: [ '*' ] +# allow_headers: [ '*' ] +# allow_methods: [ '*' ] +# max_age: 3600