Skip to content

GET /server-proxy/server-infos net::ERR_TOO_MANY_REDIRECTS with notebook 6.5.7 and JupyterHub >= 4 #511

Open
@cmd-ntrf

Description

@cmd-ntrf

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

  1. Create a virtual environment
  2. Install the following dependencies: jupyterhub 'notebook<7' jupyterlab jupyter-server-proxy
  3. Authenticate on the hub
  4. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions