We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47720c7 + 1820789 commit 6d3a627Copy full SHA for 6d3a627
src/baas/cos/index.js
@@ -9,6 +9,13 @@ class Cos {
9
constructor(credentials = {}, region = 'ap-guangzhou') {
10
this.region = region
11
this.credentials = credentials
12
+ // cos临时密钥需要用XCosSecurityToken
13
+ if(credentials.token){
14
+ this.credentials.XCosSecurityToken = credentials.token
15
+ }
16
+ if(credentials.Token){
17
+ this.credentials.XCosSecurityToken = credentials.Token
18
19
this.cosClient = new cos(this.credentials)
20
}
21
0 commit comments