Merge pull request #37361 from mitodl/marslan/6604-configurable-allowed-hosts

fix: make ALLOWED_HOSTS configurable through YAML
This commit is contained in:
Feanil Patel
2025-10-06 10:35:38 -04:00
committed by GitHub
3 changed files with 4 additions and 11 deletions

View File

@@ -141,11 +141,6 @@ SESSION_COOKIE_SAMESITE = DCS_SESSION_COOKIE_SAMESITE
for feature, value in _YAML_TOKENS.get('FEATURES', {}).items():
FEATURES[feature] = value
ALLOWED_HOSTS = [
"*",
_YAML_TOKENS.get('LMS_BASE'),
]
# Cache used for location mapping -- called many times with the same key/value
# in a given request.
if 'loc_cache' not in CACHES: