CodeClimber

Climbing the cliffs of web development, on .NET

Friday, July 14, 2017 aspnet, load balancer, Request.Url

How to get the correct Request.Url when behind a load balancer

When a web application is sitting behind either a proxy or a load balancer, and you use Request.Url by default you'll get the wrong Url. Let's see how to easily fix this issue.…