From acca0626bca3196e11078d65ca84fef00e0d8361 Mon Sep 17 00:00:00 2001 From: Muhammad Farhan Date: Tue, 22 Oct 2024 16:18:53 +0500 Subject: [PATCH] chore: Remove CSRF_TRUSTED_ORIGINS_WITH_SCHEMES variable --- registrar/settings/base.py | 1 - registrar/settings/production.py | 4 ---- 2 files changed, 5 deletions(-) diff --git a/registrar/settings/base.py b/registrar/settings/base.py index 8fbe381fc..31376ade4 100644 --- a/registrar/settings/base.py +++ b/registrar/settings/base.py @@ -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', diff --git a/registrar/settings/production.py b/registrar/settings/production.py index 874e8c29e..3ac51fa2c 100644 --- a/registrar/settings/production.py +++ b/registrar/settings/production.py @@ -1,5 +1,4 @@ from os import environ -import django import yaml from registrar.settings.base import * @@ -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