title: Azure Static Website: The account being accessed does not support http
body: <p>I use <em>Static website</em> feature of Azure storage account to host React.js application. There is also a CDN endpoint enable for the site (Microsoft Standard CDN pricing tier), so the site URL looks like <a href="https://xxx.azureedge.net/" rel="nofollow noreferrer">https://xxx.azureedge.net/</a>. The problem: when I try to access the site via HTTP protocol, it says:</p>
  <pre><code>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
  </code></pre>
  <p>I would like the user to be redirected to HTTPS version.</p>