fix load with recent chrome
This commit is contained in:
parent
62e50c29c6
commit
28a1f3c268
1 changed files with 2 additions and 3 deletions
|
@ -18,9 +18,8 @@ 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 == 'http://127.0.0.1:9842' \
|
||||
or origin == 'null'
|
||||
return self.request.host in origin or \
|
||||
origin in ('http://127.0.0.1:9842', 'null', 'file:///')
|
||||
|
||||
def open(self):
|
||||
if self.request.headers['origin'] not in ('null', 'http://127.0.0.1:9842') \
|
||||
|
|
Loading…
Reference in a new issue