Show / Hide Table of Contents

Class XXssProtectionAttribute

Action filter for setting X-XSS-Protection header value.

Inheritance
System.Object
XXssProtectionAttribute
Namespace: Lib.AspNetCore.Mvc.Security.Filters
Assembly: Lib.AspNetCore.Mvc.Security.dll
Syntax
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class XXssProtectionAttribute : ActionFilterAttribute

Constructors

XXssProtectionAttribute()

Instantiates a new XXssProtectionAttribute with Sanitize filtering mode.

Declaration
public XXssProtectionAttribute()

XXssProtectionAttribute(XssFilteringModes)

Instantiates a new XXssProtectionAttribute.

Declaration
public XXssProtectionAttribute(XssFilteringModes filteringMode)
Parameters
Type Name Description
XssFilteringModes filteringMode

The filtering mode.

Properties

FilteringMode

Gets the filtering mode.

Declaration
public XssFilteringModes FilteringMode { get; }
Property Value
Type Description
XssFilteringModes

Methods

OnActionExecuted(ActionExecutedContext)

Called after the action method executes.

Declaration
public override void OnActionExecuted(ActionExecutedContext context)
Parameters
Type Name Description
ActionExecutedContext context

The context.

Back to top Copyright © 2016 - 2023 Tomasz Pęczek