From bc43a194b1e625c608f1da336532cb03f7b8816a Mon Sep 17 00:00:00 2001 From: Michael Sauter Date: Mon, 9 Aug 2021 12:17:56 +0200 Subject: [PATCH] Enable CSRF protection in Flask example Closes #132. --- test/testdata/workspaces/python-flask-sample-app/src/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/testdata/workspaces/python-flask-sample-app/src/main.py b/test/testdata/workspaces/python-flask-sample-app/src/main.py index 3f32a140..efcbcb25 100644 --- a/test/testdata/workspaces/python-flask-sample-app/src/main.py +++ b/test/testdata/workspaces/python-flask-sample-app/src/main.py @@ -2,7 +2,8 @@ from flask import Flask, jsonify app = Flask(__name__) - +csrf = CSRFProtect() +csrf.init_app(app) @app.route('/', methods=['GET']) def hello_world():