Skip to content

Commit 11b2f6d

Browse files
committed
fix: scoped 原始线索统一带响应头
之前 buildScopedRawJson 只在 source 是「响应头」时才把 headers 字段塞进 scoped JSON,点击页面扫描 / 动态监控 / JS 版权注释来源的「原始线索」按钮拿到的 scoped JSON 没有响应头。spoof 场景下用户需要交叉对照伪造头与具体识别项,响应头应该跟着每条 scoped 视图一起出现。 将版本号提升到 1.3.47。
1 parent 606cac4 commit 11b2f6d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "stackprism",
33
"private": true,
4-
"version": "1.3.46",
4+
"version": "1.3.47",
55
"type": "module",
66
"description": "StackPrism 用于检测网页前端、后端、CDN、SaaS、广告营销、统计、登录、支付、网站程序和主题模板线索。",
77
"scripts": {

src/ui/popup/Popup.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -836,17 +836,18 @@
836836
const isBundle = trimmed.startsWith('JS 版权注释')
837837
const isHeader = !isHeaderApi && !isHeaderFrame && trimmed.startsWith('响应头')
838838
839+
// 响应头无论 source 是哪个都带上:spoof 场景下排查时方便交叉对照
839840
const baseInfo = {
840841
url: raw?.url || '',
841842
title: raw?.title || '',
842843
technology: tech?.name || '',
843-
source: trimmed
844+
source: trimmed,
845+
headers: raw?.headers || {}
844846
}
845847
846848
if (isHeader) {
847849
return {
848850
...baseInfo,
849-
headers: raw?.headers || {},
850851
technologies: (raw?.technologies || []).filter(matchTech)
851852
}
852853
}

0 commit comments

Comments
 (0)