ForwardedHeadersServiceCollectionExtensions.AddForwardedHeadersSettings method
Configures ForwardedHeadersOptions from ForwardedHeadersSettings (the ForwardedHeaders section of appsettings.json), e.g. the known proxies and networks to accept the forwarded headers from. Call app.UseForwardedHeaders() in the request pipeline to activate it.
public static IServiceCollection AddForwardedHeadersSettings(this IServiceCollection services)
| parameter | description |
|---|---|
| services | The service collection. |