Lezen in het Engels

Delen via


HstsOptions Class

Definition

Options for the Hsts Middleware

C#
public class HstsOptions
Inheritance
HstsOptions

Constructors

Properties

ExcludedHosts

A list of host names that will not add the HSTS header.

IncludeSubDomains

Enables includeSubDomain parameter of the Strict-Transport-Security header.

MaxAge

Sets the max-age parameter of the Strict-Transport-Security header.

Preload

Sets the preload parameter of the Strict-Transport-Security header.

Applies to

Product Versies
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0