StrictTransportSecurity object

Use StrictTransportSecurity to configure the Strict-Transport-Security header.

Syntax

interface StrictTransportSecurity {
   maxAge: number;
   includeSubDomains: boolean;
   preload: boolean;
}

Directives

You can customize these directives for a Strict-Transport-Security header. Set values for them in a StrictTransportSecurity object.

For information about each directive, see MDN Web Docs: Strict-Transport-Security Directives

Example

"strictTransportSecurity":
  {
    "maxAge": 15552000;
    "includeSubDomains": true;
    "preload": true;
  }

See Also