We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.4
I'm trying to pass in multiple allow_origin hostnames via .env file
.env: CORS_ALLOW_ORIGIN='["http://localhost:3001","http://localhost:3002"]'
CORS_ALLOW_ORIGIN='["http://localhost:3001","http://localhost:3002"]'
nelmio_cors.yaml allow_origin: ['%env(json:CORS_ALLOW_ORIGIN)%']
allow_origin: ['%env(json:CORS_ALLOW_ORIGIN)%']
but it keeps failing
when I do this in nelmio_cors.yaml, it works fine: allow_origin: ['http://localhost:3001','http://localhost:3002']
allow_origin: ['http://localhost:3001','http://localhost:3002']
Did anyone come across this? TIA 🙏
How could one pass in multiple entries to allow_origin from .env? I'm out of ideas, ChatGPT+ is out of ideas too...
Even GPT-4o thinks this should work, but sadly it doesn't (explored different options with ChatGPT too 🫠)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
2.4
Question
I'm trying to pass in multiple allow_origin hostnames via .env file
.env:
CORS_ALLOW_ORIGIN='["http://localhost:3001","http://localhost:3002"]'
nelmio_cors.yaml
allow_origin: ['%env(json:CORS_ALLOW_ORIGIN)%']
but it keeps failing
when I do this in nelmio_cors.yaml, it works fine:
allow_origin: ['http://localhost:3001','http://localhost:3002']
Did anyone come across this? TIA 🙏
How could one pass in multiple entries to allow_origin from .env? I'm out of ideas, ChatGPT+ is out of ideas too...
Additional context
Even GPT-4o thinks this should work, but sadly it doesn't (explored different options with ChatGPT too 🫠)
The text was updated successfully, but these errors were encountered: