'CSRF Token is missing' in Flask but it *is* rendering in the template
问题 The Problem When I try to login (using Flask-login) I get Bad Request The CSRF session token is missing but the token is rendering (in the template), secret_key is set, and I'm running locally at localhost:5000 . When I was able to log in, I could no longer use my Flask-WTF forms for the same reason. By calling form.validate() on the route, I got CSRF token missing for all of the forms. Effectively the forms just did nothing. If I look in the template where I call {{form.hidden_tag()}} the