From 53863a7afd32e0101b661de93479d6eef67fe5cc Mon Sep 17 00:00:00 2001 From: happycastle <41810556+happycastle114@users.noreply.github.com> Date: Fri, 24 Nov 2023 03:53:31 +0900 Subject: [PATCH] refactor(fix) --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 0c482d6..9169500 100644 --- a/main.py +++ b/main.py @@ -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=["*"],