From 69b71e9cce5dadb357ccd6e25a62ee135e540ca0 Mon Sep 17 00:00:00 2001 From: Florian Knappers <73856313+JJFlorian@users.noreply.github.com> Date: Mon, 8 Apr 2024 09:49:27 +0200 Subject: [PATCH] added localhost to allowed hosts --- brostar_api/settings.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/brostar_api/settings.py b/brostar_api/settings.py index ac96afe..122fa69 100644 --- a/brostar_api/settings.py +++ b/brostar_api/settings.py @@ -32,7 +32,8 @@ BASE_DIR = Path(__file__).resolve().parent.parent -ALLOWED_HOSTS = [] +ALLOWED_HOSTS = ["localhost", "127.0.0.1", "0.0.0.0"] + if not DEBUG: ALLOWED_HOSTS = [".brostar.nl"]