Files
Mangarr/config/packages/nelmio_cors.yaml
Jérémy Guillot bddcdd6823 refonte
2024-06-03 17:36:22 +02:00

12 lines
364 B
YAML

nelmio_cors:
defaults:
allow_credentials: true
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', 'Location']
max_age: 3600
paths:
'^/': ~