Click or drag to resize
CsrfProtection Class
Implementation of the stateless CSRF defense based on comparing hidden field value with cookie value.
Inheritance Hierarchy
SystemObject
  CMS.Protection.Web.UICsrfProtection

Namespace: CMS.Protection.Web.UI
Assembly: CMS.Protection.Web.UI (in CMS.Protection.Web.UI.dll) Version: 13.0.131
Syntax
C#
public sealed class CsrfProtection

The CsrfProtection type exposes the following members.

Constructors
  NameDescription
Public methodCsrfProtection
Top
Fields
  NameDescription
Public fieldStatic memberHIDDEN_FIELD_NAME
Defines the name of the hidden field used to store CSRF token. This constant is not intended for public use.
Top
Methods
  NameDescription
Public methodStatic memberIsProtectionEnabled
Returns true when CSRF protection is enabled by web.config key.
Top
See Also