fix CORS in dev env

This commit is contained in:
Tykayn 2021-11-22 10:19:59 +01:00 committed by tykayn
parent 73555bd539
commit a69c3ab1da
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
nelmio_cors:
defaults:
origin_regex: true
allow_origin: [ '*' ]
allow_origin: [ '%env(CORS_ALLOW_ORIGIN)%' ] # you can test locally with this value '^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
allow_methods: [ 'GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE' ]
allow_headers: [ '*' ]
expose_headers: [ 'Authorization' ]