Walter.Web.FireWall
AddXssProtectionBlockAndReport Method (HeaderConfig)
Walter.Web.FireWall Assembly > Walter.Web.FireWall.Configurations Namespace > HeaderConfig Class : AddXssProtectionBlockAndReport Method
leave it blank if you use IFireWall.Configuration.WebService.CSPReport
Add X-XSS-Protection 1; mode=block to all requests. (limited browser support) Enables XSS protections and instructs the user-agent to block the response in the event that script has been inserted from user input, instead of sanitizing.
Syntax
public ISecurityHeadersBuilder AddXssProtectionBlockAndReport( 
   string reportUrl
)

Parameters

reportUrl
leave it blank if you use IFireWall.Configuration.WebService.CSPReport

Return Value

ISecurityHeadersBuilder.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

HeaderConfig Class
HeaderConfig Members