Skip to content

Commit 1baa2fb

Browse files
committed
Defer xsrf checking to proxied app
1 parent b7147ef commit 1baa2fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

jupyter_server_proxy/standalone/proxy.py

+4
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ def check_origin(self, origin: str = None):
5353
# Skip JupyterHandler.check_origin
5454
return WebSocketHandler.check_origin(self, origin)
5555

56+
def check_xsrf_cookie(self):
57+
# Skip HubAuthenticated.check_xsrf_cookie
58+
pass
59+
5660
def write_error(self, status_code: int, **kwargs):
5761
# ToDo: Return proper error page, like in jupyter-server/JupyterHub
5862
return RequestHandler.write_error(self, status_code, **kwargs)

0 commit comments

Comments
 (0)