nelmio_cors.yaml 323 B

12345678910
  1. nelmio_cors:
  2. defaults:
  3. origin_regex: true
  4. allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
  5. allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
  6. allow_headers: ['Content-Type', 'Authorization']
  7. expose_headers: ['Link']
  8. max_age: 3600
  9. paths:
  10. '^/': null