-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Download file functionality is broken in notebook packages version 5.7.6+ (5.7.7, 5.7.8) #4541
Comments
I think it's come from notebook/notebook/base/handlers.py Lines 446 to 466 in 9560e0c
|
@minrk I am facing the same issue on Chrome and Firefox. Any way around this? |
The same issue can be reproduced (On all chrome and firefox browsers) when jupyterhub is hosted behind a Nginx reverse proxy on domain "https://test.domain.com" and internal IP where jupyterhub and notebooks are hosted is 10.0.0.128:8000. And Notebook Servers are spawned in dockers. Here the Referer: https://test.domain.com and Host: 10.0.0.128:8000
This may be caused due to Also this commit 7f7bfee which mentions that /files/ must be downloaded from the same host - which is not possible when running jupyter notebook behind a reverse proxy. Also |
- /files/ downloads must come from a local page (no direct visits or external links) - same for /api/ requests - disabling xsrf checks
This statement is not correct. All JupyterHub deployments are run behind a reverse proxy and do not have an issue. The reverse proxy, however, should preserve the Host header of the proxied request, not modify it. Setting In nginx, this is:
In Apache:
|
I still keep getting this error on The important error messages are:
on the
I already restarted Jupyter Docker and nginx. I even have the settings below on
I tested using Does anybody know how to make that work with the settings I provided here? |
Ok, I could bypass the problem by installing The latter was the one giving this error. |
Just got hit by this as well, unclear why. We already have |
Further info: download |
Our JupyterHub deployment is affected by this. Setting
in the Apache config doesn't work, the head of the main Jupyter page appears but there's no file list. There are other "Blocking Cross Origin API request" errors in the JupyterHub log so I presume this has broken things elsewhere. |
Likely same issue: jupyterlab/jupyterlab#6149 |
Confirmed downgrading to 5.7.5 fixes this issue. (We're blocked on other Jupyter bugs for upgrading beyond it.) |
I was having the same issue on |
I had this issue with Jupyter notebook 6.0.3. On top of Host header, I had to set Referer and CORS as well:
|
Just adding what my solution was - I was seeing this 403 error being thrown by Jupyter even though I had set correctly (even
Notice how the value of the |
Hello, I have been thru this and (jupyter/jupyter#79) as well as the jupyter forums not being able to find out what to do to fix it. Running this as |
@jakubLangr what log entries do you see for the failing requests? Are you running it standalone or behind nginx? |
@smcl in the CLI I only see: |
Just to comment on this: I have a Jupyter Notebook installation on an Ubuntu 20.04 Apache server; currently using these versions:
Basically, download worked for me for
Once I added these
Without the
So, I finally solved this (i.e. got the
Hope this helps someone! |
Original bug: jupyterlab/jupyterlab#6149
Reproduce:
Observed behavior:
XSRF protection should be switched on
The text was updated successfully, but these errors were encountered: