From ad63dbd2342f6d879bffe261488c0854702510fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=87=E8=96=87=E5=AE=89?= Date: Tue, 20 Jan 2026 21:06:17 +0800 Subject: [PATCH] a --- 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 9ade67e..71e016f 100644 --- a/backend/api/main.py +++ b/backend/api/main.py @@ -203,7 +203,7 @@ async def _ensure_initial_admin(): # CORS配置(允许React前端访问) # 默认包含:本地开发端口、主前端域名、推荐查看器域名 -cors_origins_str = os.getenv('CORS_ORIGINS', 'http://localhost:3000,http://localhost:3001,http://localhost:5173,http://as.deepx1.com,http://asapi.deepx1.com,http://r.deepx1.com,https://r.deepx1.com') +cors_origins_str = os.getenv('CORS_ORIGINS', 'http://localhost:3000,http://localhost:3001,http://localhost:5173,http://as.deepx1.com,http://asapi.deepx1.com,http://r.deepx1.com,https://r.deepx1.com,http://asapi-new.deepx1.com') cors_origins = [origin.strip() for origin in cors_origins_str.split(',') if origin.strip()] logger.info(f"CORS允许的源: {cors_origins}")