add csrf token debugging
This commit is contained in:
parent
d03b433cfe
commit
44f02d1159
1 changed files with 2 additions and 1 deletions
|
@ -135,7 +135,8 @@ app.get('*', (req, res) => {
|
||||||
app.use((err, req, res, next) => {
|
app.use((err, req, res, next) => {
|
||||||
if (err.code !== 'EBADCSRFTOKEN') return next(err);
|
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);
|
return next(err);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue