我可以复制您在示例中给出的回溯的唯一方法是,如果app.secret_key有效,但app.session_cookie_name设置...
form = FlaskForm(meta={'csrf_enabled': False}) form = FlaskForm(meta={'csrf': False}) You can disable it globally—though you really shouldn't—with the configuration:: 2 changes: 1 addition & 1 deletion 2 flask_wtf/form.py Original file line numberDiff line numberDiff line change ...