From 749fc445a407c561268e5893df44a48e6f9a0387 Mon Sep 17 00:00:00 2001 From: Michael Harrison Date: Mon, 4 Mar 2024 15:05:18 -0600 Subject: [PATCH] allow all subdomains of openstax.org for non-prod envs --- openstax/settings/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openstax/settings/base.py b/openstax/settings/base.py index f29a231a5..0d281f068 100644 --- a/openstax/settings/base.py +++ b/openstax/settings/base.py @@ -35,8 +35,8 @@ # Prod only ALLOWED_HOSTS = ['openstax.org'] else: - # All non-local and non-prod environments - rex uses env.cms.openstax.org - ALLOWED_HOSTS = [f"{ENVIRONMENT}.openstax.org", f"{ENVIRONMENT}.cms.openstax.org"] + # All non-local and non-prod environments - allow all subdomains of openstax.org + ALLOWED_HOSTS = [".openstax.org"] # These should both be set to true. The openstax.middleware will handle resolving the URL # without a redirect if needed.