Failed to determine the https port for redirect


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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM