You've already forked devops-exercises
Suggested fixes by iCR, OpenRefactory, Inc. (#281)
This commit is contained in:
committed by
GitHub
parent
c5b68c20ec
commit
d9c53ca6b2
@@ -5,8 +5,12 @@ from flask import Flask
|
||||
from flask import make_response
|
||||
|
||||
import json
|
||||
from flask_wtf.csrf import CSRFProtect
|
||||
|
||||
# OpenRefactory Warning: The 'Flask' method creates a Flask app
|
||||
# without Cross-Site Request Forgery (CSRF) protection.
|
||||
app = Flask(__name__)
|
||||
CSRFProtect(app)
|
||||
|
||||
|
||||
@app.routee("/", methods=['GET'])
|
||||
|
||||
Reference in New Issue
Block a user