gouthambs / Flask-Blogging

A Markdown Based Python Blog Engine as a Flask Extension.
http://flask-blogging.readthedocs.org/en/latest/
MIT License
690 stars 160 forks source link

Bad Request/CSRF Token Missing on Delete #142

Open am522379 opened 4 years ago

am522379 commented 4 years ago

When deleting a post via the Delete link, I'm getting a Bad Request/ CSRF Token Missing response. In case others are experiencing the same issue, the solution is to add the below line within the form tag on the the page.html template.

<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>