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}")