From 8ea214c28e3d4986307096f2d52696fedec7ed25 Mon Sep 17 00:00:00 2001 From: Wu Clan Date: Sat, 10 Oct 2026 16:41:26 +0800 Subject: [PATCH] Allow all CORS origins by default (#1270) --- backend/core/conf.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/backend/core/conf.py b/backend/core/conf.py index c6669984..d1860092 100644 --- a/backend/core/conf.py +++ b/backend/core/conf.py @@ -171,10 +171,7 @@ class Settings(BaseSettings): WS_NO_AUTH_MARKER: str = 'internal' # CORS - CORS_ALLOWED_ORIGINS: list[str] = [ # 末尾不带斜杠 - 'http://127.0.0.1', - 'http://localhost:5173', - ] + CORS_ALLOWED_ORIGINS: list[str] = ['*'] # 末尾不带斜杠 CORS_EXPOSE_HEADERS: list[str] = [ 'X-Request-ID', ]