dpjayasekara
2/17/2016 - 3:52 AM

nodesec-csrf-angular

nodesec-csrf-angular

/*some code here*/

app.use(csrf());
app.use(function (req, res, next) {
    res.cookie('XSRF-TOKEN', req.csrfToken());
    next();
});