Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove trailing "/" when creating backend origin CORS urls #61

Merged
merged 1 commit into from
May 23, 2024

Conversation

dominusmi
Copy link
Contributor

@dominusmi dominusmi commented May 23, 2024

The backend_cors_origin is a list[AnyHttpUrl] which, when transformed to str via str(origin), adds a trailing slash at the end of the url. This messes up CORS (at least in google chrome)

The backend_cors_origin is a list[AnyHttpUrl] which, when transformed to str via str(origin), add a trailing slash. This messes up CORS in google chrome
@rafsaf rafsaf merged commit ea9a261 into rafsaf:main May 23, 2024
@rafsaf
Copy link
Owner

rafsaf commented May 23, 2024

thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants