1. 程式人生 > >Failed to determine the https port for redirect

Failed to determine the https port for redirect

() nta use sim over comm ont cert docs

warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3]
Failed to determine the https port for redirect.

For the https redirection warning, I recommend simply removing the https redirection policy from the startup.cs file which is typically defined via app.UseHttpsRedirection(); unless you‘re actually using this policy for your container and in this case you‘d need to actually setup the certificates and expose the HTTPS port on your container.

需要註釋掉startip.cs裏的app.UseHttpsRedirection()。

原文鏈接:https://stackoverflow.com/questions/51385671/failed-to-determine-the-https-port-for-redirect-in-docker

Failed to determine the https port for redirect