From d9440c4aeea73ff0dc4b4a29a48f68998c0a0019 Mon Sep 17 00:00:00 2001 From: Project_IO Date: Tue, 10 Sep 2024 21:22:01 +0900 Subject: [PATCH] feat: cors issue fixed --- app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app.py b/app.py index 2549fa7..52d93f4 100644 --- a/app.py +++ b/app.py @@ -7,6 +7,8 @@ app = FastAPI() app.add_middleware( CORSMiddleware, + allow_origin=["*"], + allow_credentials=True, allow_methods=["POST, GET, PATCH, DELETE"], allow_headers=["*"] )