Skip to content

Commit

Permalink
Defer xsrf checking to proxied app
Browse files Browse the repository at this point in the history
  • Loading branch information
jwindgassen committed Oct 18, 2024
1 parent b7147ef commit 1baa2fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jupyter_server_proxy/standalone/proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def check_origin(self, origin: str = None):
# Skip JupyterHandler.check_origin
return WebSocketHandler.check_origin(self, origin)

def check_xsrf_cookie(self):
# Skip HubAuthenticated.check_xsrf_cookie
pass

def write_error(self, status_code: int, **kwargs):
# ToDo: Return proper error page, like in jupyter-server/JupyterHub
return RequestHandler.write_error(self, status_code, **kwargs)
Expand Down

0 comments on commit 1baa2fb

Please sign in to comment.