Skip to content
This repository was archived by the owner on Nov 1, 2018. It is now read-only.

Commit b7ed993

Browse files
authored
Remove obsolete Azure ForwardedHeaders workaround. (#359)
1 parent ce3c71b commit b7ed993

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/Microsoft.AspNetCore.Server.IISIntegration/WebHostBuilderIISExtensions.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,6 @@ public static IWebHostBuilder UseIISIntegration(this IWebHostBuilder hostBuilder
5757
services.Configure<ForwardedHeadersOptions>(options =>
5858
{
5959
options.ForwardedHeaders = ForwardedHeaders.XForwardedFor | ForwardedHeaders.XForwardedProto;
60-
61-
// https://github.com/aspnet/IISIntegration/issues/140
62-
// Azure Web Sites needs to be treated specially as we get an imbalanced set of X-Forwarded-* headers.
63-
// We use the existence of the %WEBSITE_INSTANCE_ID% environment variable to determine if we're running
64-
// in this environment, and if so we disable the symmetry check.
65-
var isAzure = !string.IsNullOrEmpty(Environment.GetEnvironmentVariable("WEBSITE_INSTANCE_ID"));
66-
options.RequireHeaderSymmetry = !isAzure;
6760
});
6861
});
6962
}

0 commit comments

Comments
 (0)