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"]