From b7cf8e755e63e7f0d45625530be51ccb2143b6da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Forslund?= Date: Sat, 4 Apr 2020 09:15:47 +0200 Subject: [PATCH] Remove origin check from gui websocket This allows simple websocket clients to connect as well. --- mycroft/client/enclosure/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mycroft/client/enclosure/base.py b/mycroft/client/enclosure/base.py index a12c71590b..f97138f7e8 100644 --- a/mycroft/client/enclosure/base.py +++ b/mycroft/client/enclosure/base.py @@ -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