Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

csrf useless #1

Open
imskull opened this issue Nov 29, 2013 · 0 comments
Open

csrf useless #1

imskull opened this issue Nov 29, 2013 · 0 comments

Comments

@imskull
Copy link

imskull commented Nov 29, 2013

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant