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',
|
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)
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user