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

12 lines
282 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: [ '*' ]
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:
'^/': ~