Skip to content

Commit

Permalink
Manual revert to dca02e5 so site is back up
Browse files Browse the repository at this point in the history
  • Loading branch information
TheOriginalSoni committed Oct 26, 2024
1 parent 448a762 commit 9995556
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions myus/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,18 @@
host_url = os.getenv("HOST_URL")
ALLOWED_HOSTS = [host_url]

csrf_url = os.getenv("CSRF_TRUSTED")
CSRF_TRUSTED_ORIGINS = [csrf_url]
# Application definition
if os.getenv("CSRF_TRUSTED_EXTRA"):
CSRF_TRUSTED_ORIGINS = ["https://" + host_url, os.getenv("CSRF_TRUSTED_EXTRA")]
CSRF_TRUSTED_ORIGINS = [
"https://" + host_url,
"https://www." + host_url,
os.getenv("CSRF_TRUSTED_EXTRA"),
]
else:
CSRF_TRUSTED_ORIGINS = ["https://" + host_url]
CSRF_TRUSTED_ORIGINS = ["https://" + host_url, "https://www." + host_url]

# Application definition
INSTALLED_APPS = [
"myus.apps.myusConfig",
"django.contrib.admin",
Expand Down

0 comments on commit 9995556

Please sign in to comment.