@midwayjs/securityClassesCsrfMiddleware版本:Next本页总览CsrfMiddleware HierarchyBaseMiddlewareCsrfMiddlewareIndex ConstructorsconstructorPropertiesignorematchsecurityMethodsassertCsrfcompatibleMiddlewaregetCSRFSecretgetInputTokeninitresolvesecurityNameConstructors constructornew CsrfMiddleware(): CsrfMiddlewareProperties ignoreignore: IgnoreMatcher<any>[]matchmatch: IgnoreMatcher<any>[]securitysecurity: SecurityOptionsMethods assertCsrfassertCsrf(context: any, request: any): voidcompatibleMiddlewarecompatibleMiddleware(context: any, req: any, res: any, next: any): Promise<any>getCSRFSecretgetCSRFSecret(context: any): anygetInputTokengetInputToken(context: any, request: any): anyinitinit(): Promise<void>resolveresolve(app: any): (req: any, res: any, next: any) => Promise<any>securityNamesecurityName(): string