mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 12:55:51 +00:00
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user