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

josh.mineroff
josh.mineroff Member, Moderator, Domino Posts: 9 mod
edited March 2020 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.ambekar
    akshay.ambekar Moderator, Domino Posts: 25 mod

    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.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!