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 8967470f95
commit c2bd0a6a22

View File

@ -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()