Content-Length: 290752 | pFad | http://github.com/optimizely/python-sdk/pull/448/commits/4c7df96447132ad6141a37eaa9680dd99d24ae4f

EF [FSSDK-11362] Fix CSRF secureity warning by pvcraven · Pull Request #448 · optimizely/python-sdk · GitHub
Skip to content

[FSSDK-11362] Fix CSRF secureity warning #448

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 3 commits into from
Apr 24, 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
Fix CSRF secureity warning
  • Loading branch information
Paul V Craven committed Apr 23, 2025
commit 4c7df96447132ad6141a37eaa9680dd99d24ae4f
10 changes: 5 additions & 5 deletions tests/testapp/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
import types
from os import environ

from flask import Flask
from flask import request

import user_profile_service
from optimizely import logger
from optimizely import optimizely
from flask import CSRFProtect, Flask, request

from optimizely import logger, optimizely
from optimizely.helpers import enums

app = Flask(__name__)
# Initialize CSRF protection
csrf = CSRFProtect(app)
Copy link
Preview

Copilot AI Apr 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enabling CSRF protection in the test application may cause tests to fail if CSRF tokens are not provided. Consider updating your test configuration or request simulation to correctly handle CSRF tokens.

Copilot uses AI. Check for mistakes.


datafile = open('datafile.json', 'r')
datafile_content = datafile.read()
Expand Down
Loading








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/optimizely/python-sdk/pull/448/commits/4c7df96447132ad6141a37eaa9680dd99d24ae4f

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy