Website/app/config/packages/nelmio_cors.yaml

15 lines
409 B
YAML
Raw Normal View History

2024-07-14 14:26:52 +00:00
nelmio_cors:
defaults:
allow_credentials: false
allow_origin: []
# Allow Hot Reloading CORS
when@dev:
nelmio_cors:
defaults:
origin_regex: false
allow_origin: [ 'http://localhost:3000' ]
allow_headers: ['Content-Type', "X-Requested-With"]
allow_methods: [ 'POST', 'PUT', 'GET', 'DELETE' ]
skip_same_as_origin: true