HostFilteringOptions HostFilteringOptions HostFilteringOptions Class

Definition

Options for the HostFiltering middleware

public class HostFilteringOptions
type HostFilteringOptions = class
Public Class HostFilteringOptions
Inheritance
HostFilteringOptionsHostFilteringOptionsHostFilteringOptions

Constructors

HostFilteringOptions() HostFilteringOptions() HostFilteringOptions()

Properties

AllowedHosts AllowedHosts AllowedHosts

The hosts headers that are allowed to access this site. At least one value is required.

AllowEmptyHosts AllowEmptyHosts AllowEmptyHosts

Indicates if requests without hosts are allowed. The default is true.

IncludeFailureMessage IncludeFailureMessage IncludeFailureMessage

Indicates if the 400 response should include a default message or be empty. This is enabled by default.

Applies to