Need a function to change a format for X-Forwarded-For in Application Gateway.
Some web server uses the X-Forwarded-For header as only IP address format, not IP address:Port.
So we would like to choice the format for X-Forwarded-For header by web server requirement.
For example, "Require ip" in RemoteIPHeader directive on Apache should be IP address format.
This can now be accomplished using the Header Rewrite capability (https://azure.microsoft.com/en-us/blog/rewrite-http-headers-with-azure-application-gateway) available with Application Gateway’s V2 SKU. Please see details here:
We had to workaround for Sitecore to work with Application Gateway
I have the same Issue, I raised it to Microsoft with Case Number REG:118050318114823