Show / Hide Table of Contents

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

Extension Methods

AbpObjectExtensions.As<T>(Object)
AbpObjectExtensions.To<T>(Object)
AbpObjectExtensions.IsIn<T>(T, T[])
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.If<T>(T, Boolean, Func<T, T>)
AbpObjectExtensions.If<T>(T, Boolean, Action<T>)
LockExtensions.Locking(Object, Action)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<TResult>(Object, Func<TResult>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
Back to top Powered by Volosoft