8000 [FSSDK-11362] Try 3 to fix prisma scan issue with CSRF by pvcraven · Pull Request #452 · optimizely/python-sdk · GitHub
[go: up one dir, main page]

Skip to content

[FSSDK-11362] Try 3 to fix prisma scan issue with CSRF #452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 7, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Try 3 to fix csrf scan issue
  • Loading branch information
Paul V Craven committed May 2, 2025
commit aff85e7fc4769c04cd05dc3f0468b68cacbbe887
6 changes: 5 additions & 1 deletion tests/testapp/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,14 @@
from optimizely import logger, optimizely
from optimizely.helpers import enums

# Create the flask app
app = Flask(__name__)
# Initialize CSRF protection

# Set up CSRF protection
app.config["SECRET_KEY"] = environ.get("CSRF_SECRET_KEY", "default_csrf_secret_key")
csrf = CSRFProtect(app)

# Read in the datafile
datafile = open('datafile.json', 'r')
datafile_content = datafile.read()
datafile.close()
Expand Down
0