I think everyone agrees that using HTTPS for your web applications is the default. Therefore it makes sense to have the HttpsRedirection middleware always active in your ASP.NET Core application:
However when I tried to run this ASP.NET Core application using IIS Express, I always arrived at the root url of my local IIS instance(https://localhost/):
I found the source of this behaviour in the launchsettings.json file where I had only http configured:
The https middleware causes the redirect to https but as there is no IIS Express https endpoint active I end up on https://localhost (and get the default IIS web page):
The solution is to active an https endpoint by specifying the sslPort
: