interface StrictTransportSecurityOptions

Options for Strict-Transport-Security header.

Properties

readonly
optional
maxAge: number

Max age in seconds. Default: 31536000 (1 year).

readonly
optional
includeSubDomains: boolean

Include subdomains. Default: true.

readonly
optional
preload: boolean

Preload directive.

Usage

import { type StrictTransportSecurityOptions } from "http-security-plugin/src/index.ts";