From f976a4934e284cd68f371bbe33bc3d0d71c9dc11 Mon Sep 17 00:00:00 2001 From: Michael Volo Date: Mon, 4 Mar 2024 16:49:34 -0600 Subject: [PATCH] allow all subdomains of openstax.org for non-prod envs (#1553) --- 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.