~mna/tulip-wiki

0331591b08e88559a183b24c56ca0524f5e07bc7 — Martin Angers 3 years ago 3b8efef
Update csrf doc
1 files changed, 3 insertions(+), 2 deletions(-)

M pkg.csrf.md
M pkg.csrf.md => pkg.csrf.md +3 -2
@@ 19,8 19,9 @@ The `tulip.pkg.csrf` module exports the `csrf` package.
  (default: 'x-csrf-token')
* input\_name: string = form field to look for the csrf token (default:
  '\_csrf\_token')
* fail\_handler: function = middleware function to call on error (default:
  reply with 403, body contains error message)
* error\_handler: function = middleware function to call on error,
  gets called with (req, res, nxt, err). (default: reply with 403,
  body contains error message)
* trusted\_origins: array of strings = trusted origins for https requests

# Registered Middleware