This commit is contained in:
jxxghp
2025-07-31 08:11:27 +08:00
parent d382eab355
commit 67229fd032
3 changed files with 18 additions and 16 deletions

View File

@@ -17,7 +17,7 @@ def create_app() -> FastAPI:
# 配置 CORS 中间件
_app.add_middleware(
CORSMiddleware,
CORSMiddleware, # noqa
allow_origins=settings.ALLOWED_HOSTS,
allow_credentials=True,
allow_methods=["*"],