HostFilteringBuilderExtensions.UseHostFiltering(IApplicationBuilder) HostFilteringBuilderExtensions.UseHostFiltering(IApplicationBuilder) HostFilteringBuilderExtensions.UseHostFiltering(IApplicationBuilder) Method

Definition

Adds middleware for filtering requests by allowed host headers. Invalid requests will be rejected with a 400 status code.

public static Microsoft.AspNetCore.Builder.IApplicationBuilder UseHostFiltering (this Microsoft.AspNetCore.Builder.IApplicationBuilder app);
static member UseHostFiltering : Microsoft.AspNetCore.Builder.IApplicationBuilder -> Microsoft.AspNetCore.Builder.IApplicationBuilder
<Extension()>
Public Function UseHostFiltering (app As IApplicationBuilder) As IApplicationBuilder

Parameters

Returns

Applies to