-
Notifications
You must be signed in to change notification settings - Fork 369
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
post to reportUri: ['/report-violation'] with csrf enabled?? #57
Comments
You could try putting your |
That might work - however today I load all my routes via external "controllers" - I'd have to break out a special route - but it could work. Here's my full express app:
|
Is your |
I just pulled out |
Unfortunately, it looks like app.post('/report-violation', function(req, res) {
/* ... */
});
app.use(csrf()); It doesn't look like you can do this with the current state of Worked this out in a Gist, if that interests you. I'll add a note about this to the readme and close this for now. |
So putting the route above the csurf middleware works - nice. Thanks for the gist! ;) |
I get 403's now of course. Any ideas or is this just not possible?
The text was updated successfully, but these errors were encountered: