From 9d0e821625c1facd222c1337f21afd5d92d78e80 Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Thu, 24 Jun 2021 17:30:19 -0400 Subject: [PATCH] remove the constraint that requests_pathname_prefix ends with routes_pathname_prefix when you're serving the app behind a reverse proxy with url rewriting this need not be true --- dash/_configs.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dash/_configs.py b/dash/_configs.py index 802705ed07..35a10b5b32 100644 --- a/dash/_configs.py +++ b/dash/_configs.py @@ -117,9 +117,5 @@ def pathname_configs( raise exceptions.InvalidConfig( "`requests_pathname_prefix` needs to start with `/`" ) - if not requests_pathname_prefix.endswith(routes_pathname_prefix): - raise exceptions.InvalidConfig( - "`requests_pathname_prefix` needs to ends with `routes_pathname_prefix`." - ) return url_base_pathname, routes_pathname_prefix, requests_pathname_prefix