Skip to content

Commit

Permalink
Merge pull request #61 from dominusmi/main
Browse files Browse the repository at this point in the history
Remove trailing "/" when creating backend origin CORS urls
  • Loading branch information
rafsaf committed May 23, 2024
2 parents 7f2fe0a + 34123c6 commit ea9a261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
app.add_middleware(
CORSMiddleware,
allow_origins=[
str(origin) for origin in get_settings().security.backend_cors_origins
str(origin).rstrip("/") for origin in get_settings().security.backend_cors_origins
],
allow_credentials=True,
allow_methods=["*"],
Expand Down

0 comments on commit ea9a261

Please sign in to comment.