I have an IIS server [on WinServer 2016] that acts as a reverse proxy for a few Kestrel web servers. Right now I am trying to setup IIS to forward all X-Forwarded-* headers. For X-Forwarded-For and X-Forwarded-Proto headers everything works fine but not for X-Forwarded-Host.
Here is "Allowed Server Variables" on server level:
Here is what I see in debugger, when HTTP request hits Kestrel webserver
Unfortunately I can't create a dump from PROD servers but since a few features are not working properly, the situation should be similar to DEV environment.
After reading a few articles on how to setup IIS as a reverse proxy, I got an impression that all X-Forwarded-* headers should be added automatically. Or, is XFH an exception and I need to set it manually?
I would be really appreciated for any kind of help!