nelmio_cors.yaml 506 B

123456789101112131415
  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
  11. '^/counter/':
  12. allow_origin: ['*']
  13. allow_headers: ['Content-Type']
  14. allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
  15. max_age: 3600