1
0
mirror of https://framagit.org/tykayn/date-poll-api synced 2023-08-25 08:23:11 +02:00

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

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' ]