title: Infinite redirect loop in ASP.NET core while enforcing SSL
body: <p>I followed the steps <a href="https://docs.microsoft.com/en-us/aspnet/core/security/enforcing-ssl" rel="noreferrer">here</a> to enforce SSL on my ASP.NET web API, but it always ends up in an infinite loop. What could I be doing wrong? The environment is Windows Server 2016 running in an AWS EC2 VM.</p>