Skip to content

Commit

Permalink
Limit ALLOWED HOSTS for CMS
Browse files Browse the repository at this point in the history
  • Loading branch information
amirtds committed Jan 29, 2024
1 parent 196c141 commit 88217c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cms/envs/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,9 +192,9 @@ def get_env_setting(setting):
SITE_NAME = ENV_TOKENS['SITE_NAME']

ALLOWED_HOSTS = [
# TODO: bbeggs remove this before prod, temp fix to get load testing running
"*",
CMS_BASE,
ENV_TOKENS.get('LMS_BASE', ''),
ENV_TOKENS.get('CMS_BASE', ''),
FEATURES.get('PREVIEW_LMS_BASE', '')
]

LOG_DIR = ENV_TOKENS['LOG_DIR']
Expand Down
1 change: 1 addition & 0 deletions lms/envs/production.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ def get_env_setting(setting):

ALLOWED_HOSTS = [
ENV_TOKENS.get('LMS_BASE', ''),
ENV_TOKENS.get('CMS_BASE', ''),
FEATURES.get('PREVIEW_LMS_BASE', '')
]

Expand Down

0 comments on commit 88217c3

Please sign in to comment.