Skip to content

Commit

Permalink
Enable CSRF protection in Flask example
Browse files Browse the repository at this point in the history
Closes #132.
  • Loading branch information
michaelsauter committed Aug 9, 2021
1 parent b126c1c commit bc43a19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/testdata/workspaces/python-flask-sample-app/src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit bc43a19

Please sign in to comment.