v1.7.1 修复前端捕获报错: fetch headers 不允许非 ISO-8859-1 字符(中文'游客'导致 Failed to read headers)

- 前端 /api/capture 请求头去掉 X-Caller: '游客'(中文在 HTTP 头非法,浏览器 fetch 直接抛错)
- 保留 X-From: web(ASCII 安全),调用者缺省由服务端默认 游客,行为不变
This commit is contained in:
2026-08-31 16:27:04 +08:00
parent 9c63887e10
commit 951f941eee
+1 -2
View File
@@ -975,8 +975,7 @@ DELETE /api/history/&lt;id&gt; // 删除历史</code></pre>
method: 'POST', method: 'POST',
headers: { headers: {
'Content-Type': 'application/json', 'Content-Type': 'application/json',
'X-From': 'web', 'X-From': 'web'
'X-Caller': '游客'
}, },
body: JSON.stringify(currentData) body: JSON.stringify(currentData)
}); });