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:
parent
82be5ff05b
commit
8fccd323a8
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user