We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f71922 commit fd0930cCopy full SHA for fd0930c
tests/testapp/application.py
@@ -23,10 +23,14 @@
23
from optimizely import logger, optimizely
24
from optimizely.helpers import enums
25
26
+# Create the flask app
27
app = Flask(__name__)
-# Initialize CSRF protection
28
+
29
+# Set up CSRF protection
30
+app.config["SECRET_KEY"] = environ.get("CSRF_SECRET_KEY", "default_csrf_secret_key")
31
csrf = CSRFProtect(app)
32
33
+# Read in the datafile
34
datafile = open('datafile.json', 'r')
35
datafile_content = datafile.read()
36
datafile.close()
0 commit comments