AntiForgeryConfig Class
Provides programmatic configuration for the anti-forgery token system.
Inheritance Hierarchy
System.Object
System.Web.Helpers.AntiForgeryConfig
Namespace: System.Web.Helpers
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public NotInheritable Class AntiForgeryConfig
'Usage
public static class AntiForgeryConfig
public ref class AntiForgeryConfig abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type AntiForgeryConfig = class end
public final class AntiForgeryConfig
The AntiForgeryConfig type exposes the following members.
Properties
Name | Description | |
---|---|---|
![]() ![]() |
AdditionalDataProvider | Gets a data provider that can provide additional data to put into all generated tokens and that can validate additional data in incoming tokens. |
![]() ![]() |
CookieName | Gets or sets the name of the cookie that is used by the anti-forgery system. |
![]() ![]() |
RequireSsl | Gets or sets a value that indicates whether the anti-forgery cookie requires SSL in order to be returned to the server. |
![]() ![]() |
SuppressIdentityHeuristicChecks | Gets or sets a value that indicates whether the anti-forgery system should skip checking for conditions that might indicate misuse of the system. |
![]() ![]() |
SuppressXFrameOptionsHeader | Specifies whether to suppress the generation of X-Frame-Options header which is used to prevent ClickJacking. By default, the X-Frame-Options header is generated with the value SAMEORIGIN. If this setting is 'true', the X-Frame-Options header will not be generated for the response. |
![]() ![]() |
UniqueClaimTypeIdentifier | If claims-based authorization is in use, gets or sets the claim type from the identity that is used to uniquely identify the user. |
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.