interface XxssProtectionOptions

Interface for the X-XSS-Protection middleware options. By default, the 'X-XSS-Protection' header will be set to '1; mode=block'.

Properties

optional
mode: "block" | null

The mode for the 'X-XSS-Protection' header.

optional
reportUri: string

The report URI for the 'X-XSS-Protection' header.

optional
setOnOldIE: boolean

Whether to set the 'X-XSS-Protection' header to '1; mode=block' for old IE browsers.

Usage

import { type XxssProtectionOptions } from ".";