Skip to content

Commit 396514b

Browse files
committed
fix(hosting): clear KnownIPNetworks
Clear KnownIPNetworks when configuring forwarded headers so the app doesn't retain default/trusted IP networks; aligns with KnownProxies clearing and addresses forwarded-headers compatibility.
1 parent 3da7105 commit 396514b

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/ES.FX.Ignite/Hosting/IgniteHostingExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ private static void AddAspNetServices(IHostApplicationBuilder builder, AspNetCor
3535
options.ForwardedHeaders = ForwardedHeaders.All;
3636
options.ForwardLimit = null;
3737
options.KnownProxies.Clear();
38+
options.KnownIPNetworks.Clear();
3839
});
3940

4041
if (settings.AddEndpointsApiExplorer)

0 commit comments

Comments
 (0)