prepare public api
This commit is contained in:
parent
507b6fed3e
commit
dd0e22a979
18 changed files with 237 additions and 94 deletions
|
|
@ -17,6 +17,9 @@ logger = logging.getLogger(__name__)
|
|||
|
||||
class Handler(WebSocketHandler):
|
||||
|
||||
def initialize(self, public=False):
|
||||
self._public = public
|
||||
|
||||
def check_origin(self, origin):
|
||||
# allow access to websocket from site, installer and loader (local file)
|
||||
return self.request.host in origin or \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue