Replaces the Host header with the X-Forwarded-Host on IIS of App Service via a native C++ module. NOTE: There is a popular approach to replace the HOST header with the value of X-Forwarded-Host header by unlocking the Host and X-Forwarded-Host headers, so they can be rewritten using rewrite rules. Once the request reaches the App Service, the value of the HOST header is set to the value of the X-Forwarded-Host header. However, this approach has a pitfall. If there are other rewrite rules executed after the rule for rewriting the HOST header, they do not respect the new value of the HOST header. Using the native IIS module ensures that the HOST header has taken the value of the X-Forwarded-Host header before the rewrite module steps in.
Install-Package FrontDoorHostRewriteModule -Version 1.0.0
dotnet add package FrontDoorHostRewriteModule --version 1.0.0
<PackageReference Include="FrontDoorHostRewriteModule" Version="1.0.0" />
paket add FrontDoorHostRewriteModule --version 1.0.0
This package has no dependencies.
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.