Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
fix: add conditional trusted origins update
Browse files Browse the repository at this point in the history
  • Loading branch information
UsamaSadiq committed Oct 3, 2023
1 parent 1687759 commit 575e578
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions registrar/settings/production.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from os import environ
import django
import yaml

from registrar.settings.base import *
Expand Down Expand Up @@ -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

0 comments on commit 575e578

Please sign in to comment.