fix requests_pathname_prefix

This commit is contained in:
Florian Bezannier
2021-06-21 23:30:02 +02:00
parent 4fc0b2d373
commit bf91b46b55
+2 -2
View File
@@ -36,8 +36,8 @@ class MyProxyFix(ProxyFix):
self.dash_app.requests_pathname_external_prefix = prefix
self.dash_app.config.assets_external_path = prefix
else:
self.flask_app.config['APPLICATION_ROOT'] = "/"
self.dash_app.requests_pathname_external_prefix = "/"
self.flask_app.config['APPLICATION_ROOT'] = self.dash_app.config.requests_pathname_prefix
self.dash_app.requests_pathname_external_prefix = self.dash_app.config.requests_pathname_prefix
return super().__call__(environ, start_response)