g2nb / igv-jupyter

Extension for Jupyter which integrates igv.js
MIT License
154 stars 14 forks source link

"Error accessing resource: presigned url Status:0" when trying to load presigned url to igv-jupyter #42

Closed JoannaTan closed 3 years ago

JoannaTan commented 3 years ago

Hi,

I am trying to load my VCF from a private S3 bucket. I generated a presigned URL and tried to load to igv-jupyter but i kept getting the following message: "Error accessing resource: presigned url Status:0"

I tried to load the presigned url to IGV on my windows desktop and it works fine. This indicates that the presigned url is working fine.

Is there anything that I need to set in order for igv-jupyter to work with presigned url?

I am using jupyter notebook version: 6.1.4 python version: 3.7.9 igv-jupyter version: 0.9.8

tmtabor commented 3 years ago

It's worth checking the response headers coming from S3. If there is no "Access-Control-Allow-Origin" header in the response, this may be a CORS issue. If that's the case, you'll need to modify your AWS S3 config.

JoannaTan commented 3 years ago

Thank you. I edited the CORS config and it works now.