Skip to content

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

Only handle known URLs (#10290)

Patryk Zawadzkie12e3ee238bc
diff --git a/saleor/settings.py b/saleor/settings.py
index cfacbc7714..56cb65494b 100644
--- a/saleor/settings.py
+++ b/saleor/settings.py
@@ -53,6 +53,8 @@ ADMINS = (
)
MANAGERS = ADMINS
+APPEND_SLASH = False
+
_DEFAULT_CLIENT_HOSTS = "localhost,127.0.0.1"
ALLOWED_CLIENT_HOSTS = os.environ.get("ALLOWED_CLIENT_HOSTS")
diff --git a/saleor/urls.py b/saleor/urls.py
index d99f07f2f7..f7b5149dbf 100644
--- a/saleor/urls.py
+++ b/saleor/urls.py
@@ -68,5 +68,5 @@ if settings.DEBUG:
urlpatterns += static("/media/", document_root=settings.MEDIA_ROOT) + [
url(r"^static/(?P<path>.*)$", serve),
- url(r"^", views.home, name="home"),
+ url(r"^$", views.home, name="home"),
]