diff --git a/backend/api/main.py b/backend/api/main.py index fa4c16a..8249a3d 100644 --- a/backend/api/main.py +++ b/backend/api/main.py @@ -31,7 +31,7 @@ app = FastAPI( ) # CORS配置(允许React前端访问) -cors_origins = os.getenv('CORS_ORIGINS', 'http://localhost:3000,http://localhost:5173').split(',') +cors_origins = os.getenv('CORS_ORIGINS', 'http://localhost:3000,http://localhost:5173,http://as.deepx1.com').split(',') app.add_middleware( CORSMiddleware, allow_origins=cors_origins,