Implement CSRF

This commit is contained in:
2022-07-10 20:32:29 +01:00
parent c7ead8d4fd
commit 3ad51ee1a3
5 changed files with 15 additions and 3 deletions

View File

@ -3,10 +3,12 @@
"""Flask web server."""
from flask import Flask, render_template, request
from flask_wtf.csrf import CSRFProtect
from app.send_page import send_page
app = Flask(__name__)
csrf = CSRFProtect(app)
@app.route("/", methods=['GET'])
def index():