Open
Description
Bug description
When running notebook 6.5.7, nbclassic 1.1.0 and JupyterHub >=4, ServersInfoHandler cannot be reached by the Javascript client code.
How to reproduce
- Create a virtual environment
- Install the following dependencies:
jupyterhub 'notebook<7' jupyterlab jupyter-server-proxy
- Authenticate on the hub
- Look at the browser console
Expected behaviour
The javascript client code should be able to reach the server-proxy handler to get a list of available servers.
Actual behaviour
The javascript client code cannot reach the server-proxy handler, because it is missing the XSRF header.
More info
Adding the following function to ServersInfoHandler fixed the issue, but I am not sure it is what we want in the long run:
def check_xsrf_cookie(self):
pass