From 951f941eeeac721e346ab9f2b862fa2e70f53ced Mon Sep 17 00:00:00 2001 From: hz4th_coder Date: Mon, 31 Aug 2026 16:27:04 +0800 Subject: [PATCH] =?UTF-8?q?v1.7.1=20=E4=BF=AE=E5=A4=8D=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=8D=95=E8=8E=B7=E6=8A=A5=E9=94=99:=20fetch=20headers=20?= =?UTF-8?q?=E4=B8=8D=E5=85=81=E8=AE=B8=E9=9D=9E=20ISO-8859-1=20=E5=AD=97?= =?UTF-8?q?=E7=AC=A6(=E4=B8=AD=E6=96=87'=E6=B8=B8=E5=AE=A2'=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=20Failed=20to=20read=20headers)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 前端 /api/capture 请求头去掉 X-Caller: '游客'(中文在 HTTP 头非法,浏览器 fetch 直接抛错) - 保留 X-From: web(ASCII 安全),调用者缺省由服务端默认 游客,行为不变 --- templates/index.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/templates/index.html b/templates/index.html index da17141..c35b245 100644 --- a/templates/index.html +++ b/templates/index.html @@ -975,8 +975,7 @@ DELETE /api/history/<id> // 删除历史 method: 'POST', headers: { 'Content-Type': 'application/json', - 'X-From': 'web', - 'X-Caller': '游客' + 'X-From': 'web' }, body: JSON.stringify(currentData) });