From bc3ca05d82dc284a3ef54d857f9dfeee76398220 Mon Sep 17 00:00:00 2001 From: kicer Date: Tue, 15 Sep 2026 23:38:24 +0800 Subject: [PATCH] =?UTF-8?q?MCP=20=E6=9C=8D=E5=8A=A1=E5=8D=A1=E7=89=87?= =?UTF-8?q?=EF=BC=9Aheader=20=E5=80=BC=E5=83=8F=E5=AF=86=E7=A0=81=E4=B8=80?= =?UTF-8?q?=E6=A0=B7=E8=84=B1=E6=95=8F=E6=98=BE=E7=A4=BA=E4=B8=BA=20*?= =?UTF-8?q?=EF=BC=8C=E4=B8=8D=E6=B3=84=E9=9C=B2=E5=8E=9F=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/server/public/index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/server/public/index.html b/app/server/public/index.html index 69b956d..18169e8 100644 --- a/app/server/public/index.html +++ b/app/server/public/index.html @@ -4267,8 +4267,10 @@ const off = s.enable === false; const stateHtml = off ? '已禁用' : '启用'; const entries = Object.entries(s.headers || {}); + // header 值等同密码对待:展示时脱敏为 * ,不泄露原文(编辑弹窗内仍用真实值) + const maskVal = (v) => { const str = String(v == null ? '' : v); return str ? '*'.repeat(str.length) : '--'; }; const headersHtml = entries.length - ? entries.map(([k, v]) => '
' + esc(v) + '
').join('') + ? entries.map(([k, v]) => '
' + maskVal(v) + '
').join('') : '
--
'; return '
' + '
' +