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:
parent
73555bd539
commit
a69c3ab1da
@ -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' ]
|
||||
|
Loading…
Reference in New Issue
Block a user