-
Notifications
You must be signed in to change notification settings - Fork 2k
CSRF protection middleware for the app? #828
Comments
This should indeed be addressed. You can follow the guidelines here, which suggests to use csurf express middleware. You dont need to do anything in the frontend as long as you keep things within the Angular way, because Angular will deal with it by itself, as mentioned in the docs:
|
@sparshy https://github.com/expressjs/csurf would be my recommendation to start. :-D Happy Hacking! |
I would also look into PayPal's Lusca project which as a candidate |
Didn't know lusca, it seems like a mix between csurf and helmet. |
@sparshy Did that answer your question? |
Yes @codydaig, thanks I will try to implement CSRF tokens on my branch as soon as I get time. Yo guys do have a future plan to implement it in the main branch? |
@sparshy indeed, security is also something we're investing efforts in (specifically I've been working on this front as well with my previous PRs about session security/cookies, etc). Would be great to see a PR for that whenever you have time to work on it |
If we go with Lusca, I will volunteer to do it. I am biased here :) |
@sparshy I assume no update on this topic? |
A PR has been submitted #997 |
[feat] Added Lusca middleware for CSRF [fixes #828]
are there any plans to implement CSRF protection as the app uses cookie based authentication?
The text was updated successfully, but these errors were encountered: