Skip to content

Commit

Permalink
refactor(fix)
Browse files Browse the repository at this point in the history
  • Loading branch information
happycastle114 committed Nov 23, 2023
1 parent d1e2616 commit 53863a7
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 @@ -21,12 +21,12 @@ async def initMongo(app: FastAPI):
origin = [
"http://localhost:5173",
"https://diversity.tech4impact.kr",
"https://*.netlify.app",
]

app.add_middleware(
CORSMiddleware,
allow_origins=origin,
allow_origin_regex=["https://.*\.netlify\.app"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
Expand Down

0 comments on commit 53863a7

Please sign in to comment.