From 672fb2d1ad63db5b0718c053f0883acafc2fbc28 Mon Sep 17 00:00:00 2001 From: MarekWo Date: Sat, 10 Jan 2026 14:49:45 +0100 Subject: [PATCH] fix: Add allow_unsafe_werkzeug for threading mode Flask-SocketIO in threading mode requires explicit permission to use Werkzeug dev server. Co-Authored-By: Claude Opus 4.5 --- app/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 6531274..99828ce 100644 --- a/app/main.py +++ b/app/main.py @@ -223,5 +223,6 @@ if __name__ == '__main__': app, host=config.FLASK_HOST, port=config.FLASK_PORT, - debug=config.FLASK_DEBUG + debug=config.FLASK_DEBUG, + allow_unsafe_werkzeug=True # Required for threading mode )