Skip to content
New issue

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

chore: strip CORS_ORIGINS before assigning value #233

Merged
merged 2 commits into from
Dec 12, 2023
Merged

chore: strip CORS_ORIGINS before assigning value #233

merged 2 commits into from
Dec 12, 2023

Conversation

skippednote
Copy link
Contributor

@skippednote skippednote commented Nov 1, 2023

In case the CORS_ORIGINS value is a comma separated string but with spaces in between them like
https://google.com, http://localhost:3000. In this case only the first URL is whitelisted. Stripping the spaces fixes the issue.

My team spent half of the day debugging this :)

@ahopkins ahopkins merged commit de404ba into sanic-org:main Dec 12, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants