File View/Download errors out in Jupyter v5.7.6+

josh.mineroffjosh.mineroff Member, Moderator, Domino Posts: 8 mod
edited March 20 in Q&A

I'm unable to download a .jpg file that I just uploaded to my Jupyter workspace (version: 6.0). Each time I click on that file to view or download it, I get "Blocking Cross Origin request from..." error. Please help!

Josh Mineroff | Field Engineer

Comments

  • akshay.ambekarakshay.ambekar Administrator, Moderator, Domino Posts: 18 admin

    It looks like you've run into an issue with Jupyter v5.7.6+ that's described here: https://github.com/jupyter/notebook/issues/4541

    To fix this, you can insert the below line in the pre-run script of your compute environment:

    echo "c.NotebookApp.disable_check_xsrf = True" >> /home/ubuntu/.jupyter/jupyter_notebook_config.py
    

    This line will disable the CORS check within Jupyter and enable you to view/download files again.

Sign In or Register to comment.