flask-swagger-ui icon indicating copy to clipboard operation
flask-swagger-ui copied to clipboard

Add werkzeug ProxyFix X-Forwarded-Prefix support

Open sjaek opened this issue 4 years ago • 1 comments

The base url is not the same as the blueprint mount point because the blueprint url is relative to the application context root. So either the jinja template needs to be altered to use relative urls, or the base_url should be determined per request. This commit changes the base_url to url_for(".show"), this makes the UI work for both proxied and direct requests.

sjaek avatar Jan 20 '21 15:01 sjaek

Actual problem +1

michael-xiii avatar Feb 17 '23 12:02 michael-xiii