Adding host filtering to Kestrel in ASP.NET Core

added by DotNetKicks
6/16/2020 10:29:19 AM

509 Views

Host filtering, restricting the hostnames that your app responds to, is recommended whenever you're running in production for security reasons. In this post, I describe how to add host filtering to an ASP.NET Core application. When you run an ASP.NET Core application using Kestrel, you can choose the ports it binds to, as I described in a previous post.


0 comments