I have an Angular app that makes requests to a .NET 4.6.2 Web MVC Controller and the code inside the controller makes a requests with a HttpClient to a .NET Core 3.1 API. All apps is hosted in Azure.
So Angular -> .NET 4.6.2 -> .NET Core 3.1 API.
I want to get the originating client IP in the .NET Core app. Requests that are sent directly from the client to .NET Core app is working fine by reading HttpContext.Connection.RemoteIpAddress after I added the environment variable ASPNETCORE_FORWARDEDHEADERS_ENABLED = true in Azure. But not when going through the .NET 4.6.2 app, in that case the IP is an Azure IP and not the clients IP.
What is the best way to forward the client ip information from .NET 4.6.2 app to the NET Core 3.1 app?