Files
test-apiplatform/api/config/packages/nelmio_cors.yaml
Pitchaya Boonsarngsuk 6b6c18c79e All
2019-07-06 14:40:12 +01:00

11 lines
286 B
YAML

nelmio_cors:
defaults:
origin_regex: true
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
allow_methods: ['GET', 'OPTIONS']
allow_headers: ['Content-Type', 'Authorization']
expose_headers: ['Link']
max_age: 3600
paths:
'^/': ~