From eae8c9dae5ac2c7dcf5aeb1bac30fad432825f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=87=E8=96=87=E5=AE=89?= Date: Thu, 15 Jan 2026 20:26:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=8E=A8=E8=8D=90=E7=AB=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/api/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/main.py b/backend/api/main.py index 1730efd..9843d47 100644 --- a/backend/api/main.py +++ b/backend/api/main.py @@ -98,7 +98,7 @@ app = FastAPI( ) # CORS配置(允许React前端访问) -cors_origins_str = os.getenv('CORS_ORIGINS', 'http://localhost:3000,http://localhost:5173,http://as.deepx1.com,http://asapi.deepx1.com') +cors_origins_str = os.getenv('CORS_ORIGINS', 'http://localhost:3000,http://localhost:5173,http://as.deepx1.com,http://asapi.deepx1.com,http://r.deepx1.com') cors_origins = [origin.strip() for origin in cors_origins_str.split(',') if origin.strip()] logger.info(f"CORS允许的源: {cors_origins}")