title: How to disable HTTPS redirection in Azure Website
body: <p>I have a very simple website I'm using for testing purposes that I want to support HTTP. Presently all HTTP requests are being automatically redirected to HTTPS. Here are the steps to reproduce the app:</p>
  
  <p>In Visual Studio 2019 create a new ASP.NET Core Web Application. Choose ASP.NET Core 3.1 and Empty for the project template. Disable "Configure for HTTPS". Right-click the new project and select "Publish...". Publish the app to a new App Service.</p>
  
  <p>After publishing browse to the website. It will redirect you to HTTPS. Here's what I've already tried to remedy this.</p>
  
  <p>In the Azure portal configure the newly created app service. Ensure App service authentication is off. In TLS/SSL settings set "HTTPS Only" to off.</p>
  
  <p>In Program.cs add the UseUrls option.</p>
  
  <pre class="lang-cs prettyprint-override"><code>public static IHostBuilder CreateHostBuilder(string[] args) =&gt;
      Host.CreateDefaultBuilder(args)
          .ConfigureWebHostDefaults(webBuilder =&gt;
          {
              webBuilder.UseUrls("http://localhost:8001");
              webBuilder.UseStartup&lt;Startup&gt;();
          });
  </code></pre>
  
  <p>In launchSettings.json ensure the application URL uses http.</p>
  
  <p>None of the above solutions have worked for me.</p>