diff --git a/registrar/settings/production.py b/registrar/settings/production.py index 3ac51fa2..95ca1cc5 100644 --- a/registrar/settings/production.py +++ b/registrar/settings/production.py @@ -1,4 +1,5 @@ from os import environ +import django import yaml from registrar.settings.base import * @@ -53,3 +54,6 @@ 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_SCHEME