Skip to content

Commit 9d0e821

Browse files
committed
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
1 parent 77c15c5 commit 9d0e821

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

dash/_configs.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,5 @@ def pathname_configs(
117117
raise exceptions.InvalidConfig(
118118
"`requests_pathname_prefix` needs to start with `/`"
119119
)
120-
if not requests_pathname_prefix.endswith(routes_pathname_prefix):
121-
raise exceptions.InvalidConfig(
122-
"`requests_pathname_prefix` needs to ends with `routes_pathname_prefix`."
123-
)
124120

125121
return url_base_pathname, routes_pathname_prefix, requests_pathname_prefix

0 commit comments

Comments
 (0)