modify: worker重启失败 bug 修复

This commit is contained in:
2026-09-02 11:34:30 +08:00
parent ae37d282b4
commit eaf4089b6f
3 changed files with 20 additions and 15 deletions
+7 -2
View File
@@ -53,8 +53,13 @@ allow_credentials = true
allow_headers = ["*"]
allow_methods = ["*"]
# 注意:allow_credentials=true 时 allow_origins 不能为 ["*"](starlette 会丢弃该 header),
# 需显式列出来源;本地前端 dev 为 http://localhost:5173。
allow_origins = ["http://localhost:5173", "http://127.0.0.1:5173"]
# 需显式列出来源;本地前端 dev 端口会变化(5173/5174/...)。
allow_origins = [
"http://localhost:5173",
"http://127.0.0.1:5173",
"http://localhost:5174",
"http://127.0.0.1:5174",
]
[development.mqtt]
enabled = true