Skip to content

Commit

Permalink
Fix ALLOWED_HOSTS
Browse files Browse the repository at this point in the history
  • Loading branch information
PleatherStarfish committed Jan 19, 2025
1 parent 6d72443 commit bdaa203
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/django_project/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
DEBUG = os.environ.get("DEBUG") == "True"

# https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts
ALLOWED_HOSTS = ["*"]
ALLOWED_HOSTS = os.getenv("ALLOWED_HOSTS", "127.0.0.1,localhost").split(",")

CSRF_TRUSTED_ORIGINS = [
"http://localhost",
"http://0.0.0.0",
Expand Down

0 comments on commit bdaa203

Please sign in to comment.