Skip to content

Commit 1820789

Browse files
author
dfounderliu
committed
fix: COS临时密钥
1 parent 41e5d7e commit 1820789

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/baas/cos/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class Cos {
99
constructor(credentials = {}, region = 'ap-guangzhou') {
1010
this.region = region
1111
this.credentials = credentials
12+
// cos临时密钥需要用XCosSecurityToken
1213
if(credentials.token){
1314
this.credentials.XCosSecurityToken = credentials.token
1415
}

0 commit comments

Comments
 (0)