Skip to content

Commit

Permalink
remove the constraint that requests_pathname_prefix ends with routes_…
Browse files Browse the repository at this point in the history
…pathname_prefix

when you're serving the app behind a reverse proxy with url rewriting this need not be true
  • Loading branch information
alexcjohnson committed Jun 24, 2021
1 parent 77c15c5 commit 9d0e821
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dash/_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9d0e821

Please sign in to comment.