var cos = new COS({
getAuthorization: function (options, callback) {
var authorization = COS.getAuthorization({
SecretId: '*****',
SecretKey: '*****',
Method: options.Method,
Key: options.Key,
Query: {},
Headers: {
'Access-Control-Allow-Origin': '*'
//这里怎样设置,请教一下,现在不管这样设置都是
//Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access
},
Expires: 60,
});
callback(authorization);
}
});
相似问题