Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
happycastle114 committed Nov 23, 2023
1 parent 53863a7 commit 3bc5e9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async def initMongo(app: FastAPI):
app.add_middleware(
CORSMiddleware,
allow_origins=origin,
allow_origin_regex=["https://.*\.netlify\.app"],
allow_origin_regex="https://.*\.netlify\.app",
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand Down

0 comments on commit 3bc5e9a

Please sign in to comment.