fix: 脱敏 probe-subscription-endpoints 日志中的 API base URL

使用 URL.origin 替代完整 URL,避免明文泄露 OAuth 配置中的敏感路径信息(CodeQL js/clear-text-logging)。

Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
This commit is contained in:
claude-code-best
2026-05-10 11:40:27 +08:00
parent 82be5ff05b
commit 8fccd323a8

View File

@@ -117,7 +117,8 @@ async function main(): Promise<void> {
)
const { accessToken, orgUUID } = await prepareApiRequest()
const baseUrl = getOauthConfig().BASE_API_URL
console.log(`base: ${baseUrl}`)
const { origin: baseOrigin } = new URL(baseUrl)
console.log(`base: ${baseOrigin}`)
console.log(`orgUUID: ${orgUUID.slice(0, 8)}\n`)
console.log(
' STATUS PATH BETA HEADER RESPONSE PREVIEW',