Plugin for component/model to always send along CSRF headers.
Install with component(1):
$ component install segmentio/model-csrf
Adds the token
as the proper csrf header. If no token
is given, will use window._csrf
intead
var Model = require('model');
var csrf = require('model-csrf');
var User = Model('User')
.use(csrf())
.attr('email');
MIT