From a55a59e021d33ec0063bd41cc01a93abf6066d5a Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Tue, 11 May 2021 08:39:44 +1000 Subject: Disable OPTIONS on the update-session-username route on Chat mode --- cli/onionshare_cli/web/chat_mode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/onionshare_cli/web/chat_mode.py b/cli/onionshare_cli/web/chat_mode.py index c772818d..385972fe 100644 --- a/cli/onionshare_cli/web/chat_mode.py +++ b/cli/onionshare_cli/web/chat_mode.py @@ -72,7 +72,7 @@ class ChatModeWeb: ) return self.web.add_security_headers(r) - @self.web.app.route("/update-session-username", methods=["POST"]) + @self.web.app.route("/update-session-username", methods=["POST"], provide_automatic_options=False) def update_session_username(): history_id = self.cur_history_id data = request.get_json() -- cgit v1.2.3-54-g00ecf