【问题标题】:403 error while using angular-azure-blob-service使用 angular-azure-blob-service 时出现 403 错误
【发布时间】:2018-12-28 09:59:15
【问题描述】:

我已经完成了here 中提到的所有步骤。

但这仍然给出错误:

同源策略不允许读取位于https://wtiotsstorageaccount.blob.core.windows.net/wdiotscontainer/Capture.JPG?sv=2017-11-09&ss=bfqt&srt=sco&sp=rwdlacup&se=2018-07-19T19:26:21Z&st=2018-07-19T11:26:21Z&spr=https,http&sig=%2FM1%2BRpDOZiHduYdtf9%2FpnrVTn97fV2ixglKh5bfjz6Y%3D%20&comp=block&blockid=YmxvY2stMDAwMDAw 的远程资源。 (原因:CORS 标头“Access-Control-Allow-Origin”缺失

【问题讨论】:

    标签: angular azure cors blob


    【解决方案1】:

    使用 angular-azure-blob-service 时出现 403 错误

    如果要成功发送跨域请求,请求必须匹配 CORS 配置,包括请求源、标头和响应标头。更多信息请参考Cross-Origin Resource Sharing (CORS) Support for the Azure Storage Services

    您可以为 storage blob 服务添加 CORS 设置。默认情况下,每个服务都禁用 CORS

    您还可以使用通配符“*”来允许所有源域通过 CORS 发出请求。

    【讨论】:

      猜你喜欢
      • 2021-10-01
      • 2017-03-02
      • 2017-07-28
      • 2018-08-15
      • 2021-07-29
      • 1970-01-01
      • 2021-11-08
      • 2023-01-16
      • 2020-09-12
      相关资源
      最近更新 更多