Skip to content

Commit

Permalink
chore: Remove CSRF_TRUSTED_ORIGINS_WITH_SCHEMES variable (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
mfarhan943 authored Dec 2, 2024
1 parent 51751e6 commit bd018f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion registrar/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,6 @@
SESSION_EXPIRE_AT_BROWSER_CLOSE = False
STATICFILES_STORAGE = 'django.contrib.staticfiles.storage.StaticFilesStorage'
CSRF_TRUSTED_ORIGINS = []
CSRF_TRUSTED_ORIGINS_WITH_SCHEMES = [] # temporary setting for Django 4.2 support
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
Expand Down
4 changes: 0 additions & 4 deletions registrar/settings/production.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from os import environ
import django
import yaml

from registrar.settings.base import *
Expand Down Expand Up @@ -54,6 +53,3 @@
CELERY_BROKER_HOSTNAME,
CELERY_BROKER_VHOST
)

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

0 comments on commit bd018f8

Please sign in to comment.