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:
@@ -975,8 +975,7 @@ DELETE /api/history/<id> // 删除历史</code></pre>
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-From': 'web',
|
||||
'X-Caller': '游客'
|
||||
'X-From': 'web'
|
||||
},
|
||||
body: JSON.stringify(currentData)
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user