You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set a breakpoint at csrf.js:
// check
if (val != token) return next(403); << breakpoint here
it never triggered whatever I did.
the code is trying to protect res in '/public', but csrf is only avaliable on POST because:
..csrf.js..
// ignore these methods
if ('GET' == req.method || 'HEAD' == req.method || 'OPTIONS' == req.method) return next();
it's very weird.
The text was updated successfully, but these errors were encountered:
I set a breakpoint at csrf.js:
// check
if (val != token) return next(403); << breakpoint here
it never triggered whatever I did.
the code is trying to protect res in '/public', but csrf is only avaliable on POST because:
..csrf.js..
// ignore these methods
if ('GET' == req.method || 'HEAD' == req.method || 'OPTIONS' == req.method) return next();
it's very weird.
The text was updated successfully, but these errors were encountered: