Skip to content

ForwardedHeadersServiceCollectionExtensions class

namespace: Serenity.Extensions.DependencyInjection   assembly: Serenity.Extensions

Contains extensions to configure the forwarded headers middleware from settings

public static class ForwardedHeadersServiceCollectionExtensions

Public Members

name description
static AddForwardedHeadersSettings(…) 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.

See Also