Options
All
  • Public
  • Public/Protected
  • All
Menu

Module csrf

Index

Functions

Functions

Const csrfProtection

  • csrfProtection(req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>, number>, next: NextFunction): void
  • Express middleware providing CSRF protection

    Parameters

    • req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
    • res: Response<any, Record<string, any>, number>
    • next: NextFunction

    Returns void

Generated using TypeDoc