rest.yml 842 B

1234567891011121314151617181920212223242526272829303132333435
  1. framework:
  2. csrf_protection: false #only use for public API
  3. fos_rest:
  4. routing_loader:
  5. default_format: json
  6. param_fetcher_listener: true
  7. body_listener: true
  8. #disable_csrf_role: ROLE_USER
  9. body_converter:
  10. enabled: true
  11. view:
  12. view_response_listener: force
  13. serializer:
  14. serialize_null: true
  15. nelmio_cors:
  16. defaults:
  17. allow_credentials: false
  18. allow_origin: []
  19. allow_headers: []
  20. allow_methods: []
  21. expose_headers: []
  22. max_age: 0
  23. paths:
  24. '^/api/':
  25. allow_origin: ['*']
  26. allow_headers: ['*']
  27. allow_methods: ['POST', 'PUT', 'GET', 'DELETE']
  28. max_age: 3600
  29. sensio_framework_extra:
  30. request: { converters: true }
  31. view: { annotations: false }
  32. router: { annotations: true }