-
Regarding your article in Baeldung, I see that you configure csrf in the client BFF. But do we really need CSRF here? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Session cookies are credentials and should be flagged
So, session cookies should be flagged |
Beta Was this translation helpful? Give feedback.
-
Hey, thanks for your response! |
Beta Was this translation helpful? Give feedback.
As I wrote above an attacker doesn't need to read the session cookie to run a CSRF attack.
Just read the article I linked, along with a few other results from your favorite search engine with the sentence I put above. I won't write such an article here.
Now, what if all users only have best intentions, do no mistakes, and badguys keep away from your app? Well, you can disable all security (not just CSRF). I do not have this chance and will keep CSRF protection enabled.