diff --git a/notebook/gateway/handlers.py b/notebook/gateway/handlers.py index 64996dad00..6576c3cefc 100644 --- a/notebook/gateway/handlers.py +++ b/notebook/gateway/handlers.py @@ -32,6 +32,9 @@ class WebSocketChannelsHandler(WebSocketHandler, IPythonHandler): kernel_id = None ping_callback = None + def check_origin(self, origin=None): + return IPythonHandler.check_origin(self, origin) + def set_default_headers(self): """Undo the set_default_headers in IPythonHandler which doesn't make sense for websockets""" pass