添加 WebSocket 认证模块,支持临时 token 认证机制,增强安全性并解决 Cookie 不可用问题

This commit is contained in:
墨梓柒
2025-12-14 20:08:49 +08:00
parent ea420f9f59
commit 6055b087f0
7 changed files with 361 additions and 107 deletions

View File

@@ -40,6 +40,8 @@ class WebUIServer:
allow_origins=[
"http://localhost:5173", # Vite 开发服务器
"http://127.0.0.1:5173",
"http://localhost:7999", # 前端开发服务器备用端口
"http://127.0.0.1:7999",
"http://localhost:8001", # 生产环境
"http://127.0.0.1:8001",
],