Class AspNetAntiForgeryOptions
Contains options for anti forgery.
Inheritance
System.Object
    AspNetAntiForgeryOptions
  Inherited Members
      System.Object.ToString()
    
    
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
  Namespace: EPiServer.Framework.Web
Assembly: EPiServer.Framework.AspNet.dll
Version: 11.20.7Syntax
[Options]
public class AspNetAntiForgeryOptionsConstructors
AspNetAntiForgeryOptions()
Declaration
public AspNetAntiForgeryOptions()Properties
CookieRequireSSL
Indicate the value of the Secure property of the cookie should be assigned.
Declaration
public bool? CookieRequireSSL { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Nullable<System.Boolean> | 
Remarks
null indicates the "requireSSL" attribute in web.config is being used.
CookieSameSiteType
Indicate if the value of the SameSite property of the cookie should be assigned.
Declaration
public SameSiteType? CookieSameSiteType { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Nullable<SameSiteType> | 
Remarks
null indicates the "sameSite" attribute in web.config is being used.
EnableSameOriginCheck
Determines whether AspNetAntiForgery should check request for same origin or not.
Declaration
public bool EnableSameOriginCheck { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Boolean | 
SameSiteAttributeValue
Declaration
[Obsolete("Use CookieSameSiteType instead")]
public SameSiteType SameSiteAttributeValue { get; set; }Property Value
| Type | Description | 
|---|---|
| SameSiteType | 
