Skip to content

Commit

Permalink
chore: Remove CSRF_TRUSTED_ORIGINS_WITH_SCHEMES variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mfarhan943 committed Oct 22, 2024
1 parent b38870a commit 37e65a0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion analyticsdataserver/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@
########## EDX ENTERPRISE DATA CONFIGURATION
API_AUTH_TOKEN = 'put-your-api-token-here'
CSRF_COOKIE_SECURE = False
CSRF_TRUSTED_ORIGINS_WITH_SCHEME = [] # just for Django 4.2 upgrade

EXTRA_APPS = []
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
Expand Down
3 changes: 0 additions & 3 deletions analyticsdataserver/settings/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,3 @@ def get_env_setting(setting):

for override, value in DB_OVERRIDES.items():
DATABASES['default'][override] = value

if django.VERSION[0] >= 4: # for greater than django 3.2 use schemes.
CSRF_TRUSTED_ORIGINS = CSRF_TRUSTED_ORIGINS_WITH_SCHEME

0 comments on commit 37e65a0

Please sign in to comment.