Files
Mainframe-API/config/packages/nelmio_cors.yaml
2024-08-22 02:37:00 +02:00

10 lines
344 B
YAML

nelmio_cors:
defaults:
allow_credentials: true
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
allow_headers: ['Content-Type', 'Authorization', 'X-Requested-With']
expose_headers: ['Authorization']
allow_methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS']
max_age: 3600
paths:
'^/': ~