码迷,mamicode.com
首页 > Web开发 > 详细

Failed to determine the https port for redirect

时间:2018-11-02 15:33:01      阅读:1551      评论:0      收藏:0      [点我收藏+]

标签:sim   docke   The   ref   cat   containe   determine   rect   https   

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

标签:sim   docke   The   ref   cat   containe   determine   rect   https   

原文地址:https://www.cnblogs.com/bodom/p/9896264.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!