From 8cd87a2741cee3fa845014ab92df79863e7ba697 Mon Sep 17 00:00:00 2001 From: Sam Liu Date: Mon, 30 Sep 2024 18:25:44 +0700 Subject: [PATCH] update CORS --- backend/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app.py b/backend/app.py index 3ed125a..f206360 100644 --- a/backend/app.py +++ b/backend/app.py @@ -54,7 +54,7 @@ app = FastAPI( app.add_middleware(GZipMiddleware, minimum_size=1000) if not settings.PRODUCTION: - allowed_origins = ["http://localhost:3000"] + allowed_origins = ["http://localhost:3000", "http://localhost:5001", "https://stg.samliu.io.vn"] app.add_middleware( CORSMiddleware,