Skip to content

Commit

Permalink
Merge pull request #359 from meeseeksmachine/auto-backport-of-pr-340-…
Browse files Browse the repository at this point in the history
…on-1.0.x

Backport PR #340 on branch 1.0.x (add check_origin handler to gateway WebSocketChannelsHandler)
  • Loading branch information
Zsailer authored Dec 10, 2020
2 parents 907db90 + 6cf8cd7 commit 36d8769
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 36d8769

Please sign in to comment.