Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

36 linhas
980 B

  1. nelmio_cors:
  2. defaults:
  3. allow_credentials: true
  4. allow_origin: ['*']
  5. allow_headers: ['*']
  6. allow_methods: ['POST', 'PATCH', 'GET', 'DELETE', 'OPTIONS']
  7. expose_headers: []
  8. max_age: 3600
  9. hosts: []
  10. origin_regex: true
  11. paths:
  12. # Important api settings :
  13. # Access-Control-Request-Method
  14. '^/': ~
  15. #nelmio_cors:
  16. # defaults:
  17. # allow_credentials: true
  18. # origin_regex: false
  19. ## allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
  20. ## allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
  21. ## allow_headers: ['Content-Type', 'Authorization']
  22. ## expose_headers: ['Link']
  23. # allow_origin: [ '*' ]
  24. # allow_methods: ['*']
  25. ## expose_headers: ['*']
  26. # allow_headers: [ '*' ]
  27. # max_age: 3600
  28. # paths:
  29. # '^/': null
  30. ## '^/api/':
  31. ## allow_origin: [ '*' ]
  32. ## allow_headers: [ '*' ]
  33. ## allow_methods: [ '*' ]
  34. ## max_age: 3600