HostFilteringOptions Class

Definition

Options for the HostFiltering middleware

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

Constructors

HostFilteringOptions()

Properties

AllowedHosts

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

AllowEmptyHosts

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

IncludeFailureMessage

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

Applies to