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.

    Default

    true
    
  • maxAge: number

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

    Default

    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.

    Default

    false
    

Generated using TypeDoc