Type Alias HSTSMiddlewareOptions

HSTSMiddlewareOptions: {
    includeSubDomains: boolean;
    maxAge: number;
    preload: boolean;
}

The options to customize the HSTS header value.

Type declaration

  • includeSubDomains: boolean

    Whether or not the rule should apply to all sub domains.

    true
    
  • maxAge: number

    The time, in seconds, that the browser should remember that a site is only to be accessed using HTTPS.

    31536000
    
  • preload: boolean

    Whether or not to include on the major browsers' preload list. This directive is not part of the specification, for more information about it, you should check the MDN documentation for the header.

    false