表单没有保护措施,容易受到csrf 攻击
使用wtf 加上强token

安装

  1. pip install flask-wtf

设置

flask根目录新建config.py 配置文件 ,开启csrf 保护
config.py