Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Added 127.0.0.1 to ALLOWED_HOSTS by default.

Joshua Fialkoff726f88b4c063
diff --git a/saleor/settings.py b/saleor/settings.py
index 9e5924c122..c8c149a061 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -281,7 +281,7 @@ bootstrap4 = {
TEST_RUNNER = ''
-ALLOWED_HOSTS = get_list(os.environ.get('ALLOWED_HOSTS', 'localhost'))
+ALLOWED_HOSTS = get_list(os.environ.get('ALLOWED_HOSTS', 'localhost,127.0.0.1'))
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')