Suggested fixes by iCR, OpenRefactory, Inc. (#281)

This commit is contained in:
OpenRefactory, Inc
2022-09-01 00:44:20 +06:00
committed by GitHub
parent c5b68c20ec
commit d9c53ca6b2
2 changed files with 11 additions and 1 deletions

View File

@@ -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'])