首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >对象存储 Headers怎样设置,用传统的设置headers还是没效果,如何解决?

对象存储 Headers怎样设置,用传统的设置headers还是没效果,如何解决?

提问于 2018-09-05 12:14:53
回答 2关注 0查看 1.2K
代码语言:js
复制
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);
    }
});

回答

和开发者交流更多问题细节吧,去 写回答
相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档