Failed to determine the https port for redirect
Posted bodom
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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
以上是关于Failed to determine the https port for redirect的主要内容,如果未能解决你的问题,请参考以下文章
Failed to determine a suitable driver class
SpringBoot启动报错Failed to determine a suitable driver class
SpringBoot启动报错Failed to determine a suitable driver class
SpringBoot启动异常:Reason: Failed to determine a suitable driver class