From 00f395e30432cf6905b0dae6556f8f16e9114a73 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 3 Nov 2015 00:29:16 +0100 Subject: [PATCH] allow osx installer to connect to websocket --- oml/websocket.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/oml/websocket.py b/oml/websocket.py index eeac42b..3740994 100644 --- a/oml/websocket.py +++ b/oml/websocket.py @@ -19,7 +19,12 @@ class Handler(WebSocketHandler): def check_origin(self, origin): # allow access to websocket from site, installer and loader (local file) return self.request.host in origin or \ - origin in ('http://127.0.0.1:9842', 'null', 'file:///') + origin in ( + 'http://127.0.0.1:9841', + 'http://127.0.0.1:9842', + 'file:///', + 'null' + ) def open(self): if self.request.headers['origin'] not in ('null', 'http://127.0.0.1:9842') \