mirror of
https://github.com/onionshare/onionshare.git
synced 2024-12-27 00:09:50 -05:00
Disable OPTIONS on the update-session-username route on Chat mode
This commit is contained in:
parent
a066c871a9
commit
a55a59e021
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user