add csrf token debugging

This commit is contained in:
Cassie Tarakajian 2017-11-27 17:26:32 -05:00
parent d03b433cfe
commit 44f02d1159
1 changed files with 2 additions and 1 deletions

View File

@ -135,7 +135,8 @@ app.get('*', (req, res) => {
app.use((err, req, res, next) => {
if (err.code !== 'EBADCSRFTOKEN') return next(err);
console.error('Invalid CSRF token for: ' + req.url);
console.error('Invalid CSRF Token.');
console.error(req.url);
return next(err);
});