增加推荐站

This commit is contained in:
薇薇安 2026-01-15 20:26:41 +08:00
parent 37d766865b
commit eae8c9dae5

View File

@ -98,7 +98,7 @@ app = FastAPI(
) )
# CORS配置允许React前端访问 # 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()] cors_origins = [origin.strip() for origin in cors_origins_str.split(',') if origin.strip()]
logger.info(f"CORS允许的源: {cors_origins}") logger.info(f"CORS允许的源: {cors_origins}")