跳到主要内容
版本:Next

CsrfMiddleware

Hierarchy

  • BaseMiddleware
    • CsrfMiddleware

Index

Constructors

constructor

Properties

ignore

ignore: IgnoreMatcher<any>[]

match

match: IgnoreMatcher<any>[]

security

security: SecurityOptions

Methods

assertCsrf

  • assertCsrf(context: any, request: any): void

compatibleMiddleware

  • compatibleMiddleware(context: any, req: any, res: any, next: any): Promise<any>

getCSRFSecret

  • getCSRFSecret(context: any): any

getInputToken

  • getInputToken(context: any, request: any): any

init

  • init(): Promise<void>

resolve

  • resolve(app: any): (req: any, res: any, next: any) => Promise<any>

securityName

  • securityName(): string