Skip to content

Commit

Permalink
Fix allow_origin_regex
Browse files Browse the repository at this point in the history
  • Loading branch information
devennavani committed Jan 18, 2024
1 parent c61c39a commit 1d1ea15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
origins = ["*"]
web_app.add_middleware(
CORSMiddleware,
allow_origin_regex='https://modalproject-.*\.vercel\.app',
allow_origin_regex='https://modalproject.*\.vercel\.app',
allow_credentials=True, # This allows cookies and credentials to be sent along with the requests.
allow_methods=["*"], # Allows all methods
allow_headers=["*"], # Allows all headers
Expand Down

0 comments on commit 1d1ea15

Please sign in to comment.