Commit 7964b7c2 by Julien Jorry

Fix env CORS_ALLOW_ORIGIN not found bug

parent be698485
nelmio_cors: nelmio_cors:
defaults: defaults:
origin_regex: true origin_regex: true
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%'] # allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
allow_origin: ['*']
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE'] allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
allow_headers: ['Content-Type', 'Authorization'] allow_headers: ['Content-Type', 'Authorization']
expose_headers: ['Link'] expose_headers: ['Link']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment