This is an automated email from the ASF dual-hosted git repository.

dill0wn pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/allura.git


The following commit(s) were added to refs/heads/master by this push:
     new 4dda5dd32 werkzeug 3.0.3 requires adding this if debugging on 
non-localhost
4dda5dd32 is described below

commit 4dda5dd320b4f2688d95cd8d854039df3ecc9fae
Author: Dave Brondsema <[email protected]>
AuthorDate: Tue Aug 20 16:49:18 2024 -0400

    werkzeug 3.0.3 requires adding this if debugging on non-localhost
---
 Allura/allura/config/middleware.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/Allura/allura/config/middleware.py 
b/Allura/allura/config/middleware.py
index edf28a968..ec3547274 100644
--- a/Allura/allura/config/middleware.py
+++ b/Allura/allura/config/middleware.py
@@ -206,6 +206,7 @@ def _make_core_app(root, global_conf: dict, **app_conf):
         if asbool(config['debug']):
             # Converts exceptions to HTTP errors, shows traceback in debug mode
             app = DebuggedApplication(app, evalex=True)
+            app.trusted_hosts += [config['domain']]
         else:
             app = ErrorMiddleware(app, config)
 

Reply via email to