Skip to content

Commit

Permalink
Remove setting ALLOWED_HOSTS to * in DEV mode
Browse files Browse the repository at this point in the history
  • Loading branch information
pmac committed Feb 27, 2025
1 parent d586529 commit adf2e33
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bedrock/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,12 +183,9 @@ def _override_csp(csp, append: dict[str, list[str]] = None, replace: dict[str, l
}

# 4. SETTINGS WHICH APPLY REGARDLESS OF SITE MODE
if DEV:
ALLOWED_HOSTS = ["*"]
else:
if not DEBUG:
MIDDLEWARE += ["bedrock.base.middleware.FrameOptionsHeader"]


if CACHES["default"]["BACKEND"] == "django_pylibmc.memcached.PyLibMCCache":
CACHES["default"]["BINARY"] = True
CACHES["default"]["OPTIONS"] = { # Maps to pylibmc "behaviors"
Expand Down

0 comments on commit adf2e33

Please sign in to comment.