rafsaf / minimal-fastapi-postgres-template

minimal-fastapi-postgres-template based on official template but rewritten
https://minimal-fastapi-postgres-template.rafsaf.pl
MIT License
456 stars 60 forks source link

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

Closed dominusmi closed 3 months ago

dominusmi commented 3 months ago

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)

rafsaf commented 3 months ago

thanks!