Forum Discussion
bertrandpons
Jan 27, 2023Copper Contributor
Get ClientIp in backend service (behind FrontDoor and APIM)
Context: Azure Front Door connects to APIM (external mode) that forwards the requests to services inside AKS. Services are monitored with Application Insights. The target is to be able to retrieve...
shailesh14
Microsoft
Jul 23, 2024You can try few things
use context.Request.Headers.GetValueOrDefault("X-Forwarded-Host") or context.Request.Headers.GetValueOrDefault("X-Forwarded-For")
However, both cannot guarantee that you will get the client IP address. here is a sample which can filter on IP Address when using Application Gateway