jupyterlab / jupyterlab-git

A Git extension for JupyterLab
BSD 3-Clause "New" or "Revised" License
1.45k stars 313 forks source link

Multiple cookie errors on startup #1343

Closed JasonWeill closed 1 month ago

JasonWeill commented 1 month ago

Description

When JupyterLab-Git is enabled, on startup, it tries to fetch a significant number of .png files, each named after a GitHub user, from github.com. Each request fails because of three cookie requests, for _gh_sess, _octo, and logged_in, all with the same text: "Cookie “[name]” has been rejected because it is in a cross-site context and its “SameSite” is “Lax” or “Strict”." This produces errors in the browser console.

In the screenshot below, the GitHub usernames are redacted out of privacy concerns.

image

Reproduce

  1. Enable JupyterLab-Git.
  2. Start JupyterLab.

Expected behavior

No errors in console.

Context

Found while investigating https://github.com/jupyterlab/jupyterlab/issues/16667.

JasonWeill commented 1 month ago

Error persists even without JupyterLab Git; filed https://github.com/jupyterlab/jupyterlab/issues/16703 concerning the extension manager.