Disable OPTIONS on the update-session-username route on Chat mode

This commit is contained in:
Miguel Jacq 2021-05-11 08:39:44 +10:00
parent a066c871a9
commit a55a59e021
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -72,7 +72,7 @@ class ChatModeWeb:
) )
return self.web.add_security_headers(r) 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(): def update_session_username():
history_id = self.cur_history_id history_id = self.cur_history_id
data = request.get_json() data = request.get_json()