maxcountryman / flask-seasurf

SeaSurf is a Flask extension for preventing cross-site request forgery (CSRF).
http://readthedocs.org/docs/flask-seasurf/
Other
190 stars 49 forks source link

Validate the request is actually json #130

Closed rspitler closed 2 years ago

rspitler commented 2 years ago

When using flask_json you can cause a JsonError to be raised even if you call hasattr(request, 'json') and the request has an empty body