摘要:
防御原理,将csrf_token放到session中,再将session放到cookie中 实现: from flask_wtf import CSRFProtect # flask_wtf 已经提供CSRF的防御手段CSRFProtect(app) # 绑定app CSRFProtect源码 需在 阅读全文
posted @ 2019-11-16 16:22
向前走。
阅读(1388)
评论(0)
推荐(0)
摘要:
准备一个页面或图片,用于用户访问 一:表单方式 视图 from flask import Flask, render_templateapp = Flask(__name__)@app.route('/')def index(): return render_template('index.html 阅读全文
posted @ 2019-11-16 15:15
向前走。
阅读(278)
评论(0)
推荐(0)

浙公网安备 33010602011771号