pallets-eco / flask-debugtoolbar

A toolbar overlay for debugging Flask applications
https://flask-debugtoolbar.readthedocs.io
BSD 3-Clause "New" or "Revised" License
952 stars 145 forks source link

toolbar static files are misconfigured when reverse proxying to subfolder #117

Open ser opened 6 years ago

ser commented 6 years ago

Toolbar sets /_debug_toolbar URI when I reverse proxy flask through nginx to a subfolder /xxx - instead of /xxx/_debug_toolbar

I hacked it by copying .js and .css files into flask static files directory and modifying templates/base.html - but it is an ugly hack.

ser commented 6 years ago

I can confirm this very serious bug in flask 1.0.2, IMHO toolbar ignores completely SUBDIR

https://github.com/mgood/flask-debugtoolbar/blob/master/flask_debugtoolbar/__init__.py#L81