Class AbpAntiForgeryOptions
Inheritance
System.Object
AbpAntiForgeryOptions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Volo.Abp.AspNetCore.Mvc.AntiForgery
Assembly: Volo.Abp.AspNetCore.Mvc.dll
Syntax
public class AbpAntiForgeryOptions
Constructors
AbpAntiForgeryOptions()
Declaration
public AbpAntiForgeryOptions()
Properties
AuthCookieSchemaName
Used to find auth cookie when validating Anti Forgery token. Default value: "Identity.Application".
Declaration
public string AuthCookieSchemaName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
AutoValidate
Default value: true.
Declaration
public bool AutoValidate { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
AutoValidateFilter
A predicate to filter types to auto-validate. Return true to select the type to validate. Default: returns true for all given types.
Declaration
public Predicate<Type> AutoValidateFilter { get; set; }
Property Value
Type | Description |
---|---|
System.Predicate<System.Type> |
AutoValidateIgnoredHttpMethods
Default methods: "GET", "HEAD", "TRACE", "OPTIONS".
Declaration
public HashSet<string> AutoValidateIgnoredHttpMethods { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.HashSet<System.String> |
TokenCookie
Use to set the cookie options to transfer Anti Forgery token between server and client. Default name of the cookie: "XSRF-TOKEN".
Declaration
public CookieBuilder TokenCookie { get; }
Property Value
Type | Description |
---|---|
CookieBuilder |