Azure静态网站: The account being accessed does not support http

标签 azure azure-web-app-service azure-storage azure-cdn

我使用 Azure 存储帐户的静态网站功能来托管 React.js 应用程序。该站点还启用了 CDN 终结点(Microsoft 标准 CDN 定价层),因此站点 URL 类似于 https://xxx.azureedge.net/ 。问题:当我尝试通过 HTTP 协议(protocol)访问该网站时,它显示:

The account being accessed does not support http.
HttpStatusCode: 400
ErrorCode: AccountRequiresHttps
RequestId : 46959fc9-a01e-006d-2bc5-6b781e000000
TimeStamp : 2020-08-06T07:48:01.6590412Z

我希望将用户重定向到 HTTPS 版本。

最佳答案

您可以允许没有 CDN 的 HTTP: 在“设置”->“配置”下,将“需要安全传输”设置为“禁用”。

Screenshot Azure Storage Portal - Secure transfer required

但是,要重定向到 HTTPS,您需要 CDN。

关于Azure静态网站: The account being accessed does not support http,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63279285/

相关文章:

node.js - 更新后无法删除 azure 存储队列消息(未找到消息)

angularjs - Cordova azure 媒体播放器

azure - 如何在 Microsoft Azure 上执行第三方域设置?

azure - Azure Webapp 上的 Kudu 导致 "Invalid URI: The hostname could not be parsed."异常

python - [AZURE]OSError : libgomp. so.1:无法打开共享对象文件:没有这样的文件或目录

azure - 在函数应用程序中,比例单位是函数还是应用程序?

python - 为 Django/Python 3 配置 Azure

Azure WebJob 不向 Azure SignalR 服务发送 SignalR 消息

azure - 如何在没有 Azure 的情况下将 Azure 应用程序部署到生产环境中

asp.net - 是否可以在 AZURE 的同一个网站门户中部署 WCF 服务和网站?