Skip to main content
Module

x/hsts_middleware/mod.ts>StrictTransportSecurity

HTTP Strict Transport Security(HSTS) middleware
Latest
interface StrictTransportSecurity
import { type StrictTransportSecurity } from "https://deno.land/x/hsts_middleware@1.0.1/mod.ts";

HTTP Strict-Transport-Security header field.

Properties

readonly
maxAge: number

The number of seconds, after the reception of the STS header field, during which the UA regards the host.

readonly
optional
includeSubDomains: boolean

Whether the rule applies to all subdomains or not.

readonly
optional
preload: boolean

Whether the domain do preload or not.