Skip to content

segment-boneyard/csrf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csrf

Automatically fill a form's CSRF field.

Installation

$ component install segmentio/csrf

Example

var csrf = require('csrf');
var form = document.querySelector('form');

csrf(form, 'token');

API

csrf(form, token)

Automatically fill a form's _csrf field with token.

License

MIT

About

Automatically fill a form's CSRF field.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published