Skip to content

Commit 9c75d6a

Browse files
committed
upd:补充d.ts
1 parent 84d4f78 commit 9c75d6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ declare namespace COS {
171171
UploadIdCacheLimit?: number,
172172
/** 是否使用全球加速域名。开启该配置后仅以下接口支持操作:putObject、getObject、headObject、optionsObject、multipartInit、multipartListPart、multipartUpload、multipartAbort、multipartComplete、multipartList、sliceUploadFile、uploadFiles */
173173
UseAccelerate?: boolean,
174+
/** 默认为true,将host加入签名计算,关闭后可能导致越权风险,建议保持为true */
175+
ForceSignHost?: boolean,
174176
/** 获取签名的回调方法,如果没有 SecretId、SecretKey 时,必选 */
175177
getAuthorization?: (
176178
options: GetAuthorizationOptions,
@@ -1907,6 +1909,8 @@ Bulk:批量模式,恢复时间为24 - 48小时。 */
19071909
Query?: Query,
19081910
/** 请求里的 Header 参数 */
19091911
Headers?: Headers,
1912+
/** 默认为true,将host加入签名计算,关闭后可能导致越权风险,建议保持为true */
1913+
ForceSignHost?: boolean,
19101914
}
19111915

19121916
}

0 commit comments

Comments
 (0)