File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments