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 '
' + '
' +