How do I prevent an Azure App Service redirecting from HTTP to HTTPS after I create an HTTP Custom Domain to an App Service?
HTTPS Only is disabled Authentication is
As well as disabling forced HTTPS in the App Service, a second thing was required:
app.UseHttpsRedirection(); had been set in the Startup.cs file.
This forces the redirection in code independently of the App Service setting. Commenting it out disabled the redirection, solving the problem.
I think the permanent 301 returned from the azure website when HTTPS only
was ON
for a while and you can test your site with the setting enabled.
Disabling the cache in Chrome DEV tools and explicitly calling the url with http again then works just fine for me.
For more details, u can see the post.
The above answers are endorsed by the initiator of the post and the answerers, and I hope it will be useful to you.