This commit is contained in:
KirisameVanilla 2025-09-21 21:25:08 +08:00
parent c953a820d1
commit 399e4216d4
No known key found for this signature in database
GPG Key ID: 7FC750F817277AC5
1 changed files with 2 additions and 7 deletions

View File

@ -33,12 +33,7 @@ import debug.httpdebugger
# 添加CORS中间件
app.add_middleware(
CORSMiddleware,
allow_origins=[
"http://localhost:5173",
"http://localhost:5174",
"http://127.0.0.1:5173",
"http://127.0.0.1:5174",
],
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],