by BiteCode_dev · 4y ago · 0 comments
In fact, every time somebody choose flask over Django, I ask what they are going to do about CSRF, only to get a blank stare. Same with manual PHP or using most nodejs web libs.
There are so many websites that are vulnerable to this, and it's something we know well, and have solutions for. Imagine what we don't know about. The internet is really made of swiss cheese.
Django provides so much security out of the box.
That's before we even talk about features.
It just feels free because you already paid with your time to learn the conventions. :)
2. WTForms is not the only way to do CSRF tokens with Flask
My point is that it’s not plausible to infer with certainty that some large part of Flask users would not have CSRF tokens just because Flask has more downloads than Flask-WTF
[0]: https://github.com/nickjj/build-a-saas-app-with-flask/blob/1...