feat(tool): add support for API key authentication via query parameter (#21656)

This commit is contained in:
诗浓 2025-07-11 10:39:20 +08:00 • committed by GitHub
commit e576b989b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 126 additions and 20 deletions

View file

@ -80,11 +80,15 @@ const translation = {
title: '鉴权方法',
type: '鉴权类型',
keyTooltip: 'HTTP 头部名称,如果你不知道是什么,可以将其保留为 Authorization 或设置为自定义值',
queryParam: '查询参数',
queryParamTooltip: '用于传递 API 密钥查询参数的名称, 如 "https://example.com/test?key=API_KEY" 中的 "key"参数',
types: {
none: '无',
api_key: 'API Key',
api_key_header: '请求头',
api_key_query: '查询参数',
apiKeyPlaceholder: 'HTTP 头部名称,用于传递 API Key',
apiValuePlaceholder: '输入 API Key',
queryParamPlaceholder: '查询参数名称,用于传递 API Key',
},
key: '键',
value: '值',