Remove origin check from gui websocket

This allows simple websocket clients to connect as well.
pull/2533/head
Åke Forslund 2020-04-04 09:15:47 +02:00
parent 4f65591c21
commit b7cf8e755e
1 changed files with 4 additions and 0 deletions

View File

@ -554,3 +554,7 @@ class GUIWebsocketHandler(WebSocketHandler):
s = json.dumps(data)
LOG.info('Sending {}'.format(s))
self.write_message(s)
def check_origin(self, origin):
"""Disable origin check to make js connections work."""
return True