public function setXssProtection($mode = self::XSS_BLOCK)
    {
        $mode = (string)$mode;

        if ($mode === self::XSS_BLOCK) {
            $mode = self::XSS_ENABLED_BLOCK;
        }

        $this->checkValues($mode, [self::XSS_ENABLED, self::XSS_DISABLED, self::XSS_ENABLED_BLOCK]);
        $this->headers['x-xss-protection'] = $mode;

        return $this;
    }
public function setXssProtection($mode = self::XSS_BLOCK)
    {
        $mode = (string)$mode;

        if ($mode === self::XSS_BLOCK) {
            $mode = self::XSS_ENABLED_BLOCK;
        }

        $this->checkValues($mode, [self::XSS_ENABLED, self::XSS_DISABLED, self::XSS_ENABLED_BLOCK]);
        $this->headers['x-xss-protection'] = $mode;

        return $this;
    }
public function setXssProtection ( $ mode = self :: XSS_BLOCK ) { $ mode = ( string ) $ mode ; if ( $ mode === self :: XSS_BLOCK ) { $ mode = self :: XSS_ENABLED_BLOCK ; } $ this -> checkValues ( $ mode , [ self :: XSS_ENABLED , self :: XSS_DISABLED , self :: XSS_ENABLED_BLOCK ] ) ; $ this -> headers [ 'x-xss-protection' ] = $ mode ; return $ this ; }
X-XSS-Protection

@link https://blogs.msdn.microsoft.com/ieinternals/2011/01/31/controlling-the-xss-filter
@param string $mode Mode value. Available Values: '1', '0', 'block'
@return $this
X - XSS - Protection