From a5333630b8fcb0400c5d164d237fdca56ba8ec0e Mon Sep 17 00:00:00 2001 From: "raoha.rh" Date: Wed, 3 Jul 2024 13:15:54 +0800 Subject: [PATCH] fix: cors --- server/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/main.py b/server/main.py index 245eaf5b..34e20603 100644 --- a/server/main.py +++ b/server/main.py @@ -31,7 +31,7 @@ secret_key = session_secret_key, ) -cors_origins = ["http://0.0.0.0:3000", "http://localhost:3000"] + cors_origins_whitelist.split(',') +cors_origins = ["*"] if cors_origins_whitelist is None else cors_origins_whitelist.split(',') app.add_middleware( CORSMiddleware,