fix: WebSocket 鉴权 — Cookie 优先 (支持 HttpOnly)
根因: panel_token 是 HttpOnly cookie, JS getCookie() 读不到 → 前端 WS ?token= 参数为空 → 认证失败 → 仪表盘无数据 修复: - _ws_auth_wrapper: Cookie 优先 → query token 备用 → API Key - 浏览器同源 WS 自动发送 Cookie, 无需 ?token= - dashboard.js / logs.js 移除多余的 getCookie+?token= Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
1 parent
557135c376
commit
5e06c17b52
7 files changed
+84
-9
No files matched your search
@@ -42,5 +42,16 @@
|
||||
"framework.command.execute"
|
||||
],
|
||||
"timestamp": 17177.106703342
|
||||
},
|
||||
"fe262a42": {
|
||||
"plugin_name": "sentinel",
|
||||
"permissions": [
|
||||
"plugin.sentinel.read",
|
||||
"plugin.sentinel.write",
|
||||
"plugin.network.access",
|
||||
"framework.event.subscribe",
|
||||
"framework.command.execute"
|
||||
],
|
||||
"timestamp": 25770.11842246
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user