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

Except json.get error for JSON list data #65

Closed SkylerWilliams closed 7 years ago

SkylerWilliams commented 7 years ago

Fixes #64

Adds AttributeError to the exceptions for trying to read JSON data from the request in _before_request in order to support the case where JSON data is solely a list. If the JSON data is a list, we assume that it does not contain the request_csrf_token and move forward to look for the token in the headers.

maxcountryman commented 7 years ago

Thanks!