date-poll-api/config/packages/nelmio_cors.yaml

13 lines
463 B
YAML
Raw Normal View History

2021-04-21 13:46:21 +02:00
nelmio_cors:
2021-04-29 10:20:12 +02:00
defaults:
origin_regex: true
# allow_origin: [ '%env(CORS_ALLOW_ORIGIN)%' ] # you can test locally with this value '^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$'
allow_origin: [ '^https?://(localhost|127\.0\.0\.1)(:[0-9]+)?$' ]
2021-04-29 10:20:12 +02:00
allow_methods: [ 'GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE' ]
2021-04-29 11:41:36 +02:00
allow_headers: [ '*' ]
2021-04-29 10:20:12 +02:00
expose_headers: [ 'Authorization' ]
2021-04-29 11:41:36 +02:00
allow_credentials: true
2021-04-29 10:20:12 +02:00
max_age: 3600
paths:
'^/': ~