let client = new OSS.Wrapper({
accessKeyId: res.data.accessKeyId,
accessKeySecret: res.data.accessKeySecret,
stsToken: res.data.securityToken,
region: _this.region,
bucket: _this.bucket,
secure:true
});
文档参考:https://help.aliyun.com/document_detail/64095.html?spm=a2c4g.11186623.6.923.7b6179f8su9yOG
只需要加一个配置项,
secure:true
即可支持https,即如果网站本身是https的,上传图片的地址也是以https上传