Skip to content

Commit

Permalink
Merge pull request jupyter-server#340 from ricklamers/master
Browse files Browse the repository at this point in the history
add check_origin handler to gateway WebSocketChannelsHandler
  • Loading branch information
kevin-bates authored Nov 15, 2020
2 parents 7738d00 + f10381c commit 78aaac3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jupyter_server/gateway/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ class WebSocketChannelsHandler(WebSocketHandler, JupyterHandler):
kernel_id = None
ping_callback = None

def check_origin(self, origin=None):
return JupyterHandler.check_origin(self, origin)

def set_default_headers(self):
"""Undo the set_default_headers in IPythonHandler which doesn't make sense for websockets"""
pass
Expand Down

0 comments on commit 78aaac3

Please sign in to comment.