Aller au contenu principal
Version: Next

SecurityCSRFOptions

Hierarchy

Index

Properties

bodyName

bodyName: string

The name of the csrf token in the body.

cookieDomain

cookieDomain: (context: any) => string

cookieName

cookieName: string | string[]

The key name stored in the cookie by the token of csrf

enable

enable: boolean

headerName

headerName: string

The name of the csrf token in the header

optionalignore

ignore?: IgnoreMatcher<any> | IgnoreMatcher<any>[]

optionalmatch

match?: IgnoreMatcher<any> | IgnoreMatcher<any>[]

queryName

queryName: string

The name of the csrf token in the query.

refererWhiteList

refererWhiteList: string[]

sessionName

sessionName: string

The key name of the CSRF token stored in the session.

type

useSession

useSession: boolean

If set to true, the secret will be stored in the session instead of the cookie.