Closed affand closed 6 years ago
The app use UseHttpsRedirection() to enforce https. However no https port for redirect specified. So we need to add one in Startup.cs
services.AddHttpsRedirection(options => { options.RedirectStatusCode = StatusCodes.Status307TemporaryRedirect; options.HttpsPort = 5001; });
AFAIK, explicit Https port declaration is optional because ASP.Net Core will smartly provide the port for us. If we want to customize the port, I prefer to do it via env var ASPNETCORE_HTTPS_PORT.
ASPNETCORE_HTTPS_PORT
The app use UseHttpsRedirection() to enforce https. However no https port for redirect specified. So we need to add one in Startup.cs