react-logo/backend/config/packages/nelmio_cors.yaml

12 lines
355 B
YAML
Raw Normal View History

2020-02-17 22:28:57 +01:00
nelmio_cors:
defaults:
2020-02-19 12:02:12 +01:00
allow_credentials: true
2020-02-17 22:28:57 +01:00
origin_regex: true
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
allow_headers: ['Content-Type', 'Authorization']
expose_headers: ['Link']
max_age: 3600
paths:
'^/': null