fix CORS in dev env
This commit is contained in:
parent
73555bd539
commit
a69c3ab1da
|
@ -1,7 +1,7 @@
|
||||||
nelmio_cors:
|
nelmio_cors:
|
||||||
defaults:
|
defaults:
|
||||||
origin_regex: true
|
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_methods: [ 'GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE' ]
|
||||||
allow_headers: [ '*' ]
|
allow_headers: [ '*' ]
|
||||||
expose_headers: [ 'Authorization' ]
|
expose_headers: [ 'Authorization' ]
|
||||||
|
|
Loading…
Reference in New Issue