Computer-Aided Drug Design at the Durrant Lab › Forums › ProteinVR › Can’t load external url with sdf file
- This topic has 1 reply, 1 voice, and was last updated 4 years, 8 months ago by
Jacob Durrant.
- AuthorPosts
- June 20, 2020 at 9:01 pm #13717
Abylay Ospan
GuestHello,
thanks for this great tool! Unfortunately, I can’t load the following external URL:
https://static.molinstincts.com/sdf_3d/dopamine-3D-structure-CT1000589152.sdfIt shows me following error in browser developer tool console:
Access to XMLHttpRequest at ‘https://static.molinstincts.com/sdf_3d/dopamine-3D-structure-CT1000589152.sdf’ from origin ‘https://durrantlab.pitt.edu’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.Looks like you need to specify "Access-Control-Allow-Origin: *" header in the response but I’m not sure.
Thank you!
- June 20, 2020 at 9:07 pm #13773
Jacob Durrant
KeymasterHi Abylay. Much thanks for your interest in ProteinVR. I was able to reproduce the error on my computer. Unfortunately, the problem isn’t that ProteinVR can’t load the remote file. It’s that the server where the remote file is hosted won’t allow ProteinVR to access it. To fix the problem would require changes on the remote server itself. You may wish to contact the maintainer of molinstincts.com to see if they would be willing to change their server settings.
For what it’s worth, I’ve found that uploading SDF files to https://gist.github.com/ is a good way to make them publicly available. Here’s an example of loading a model from gist, in case it’s helpful:Â https://durrantlab.pitt.edu/pvr/?s=https://gist.githubusercontent.com/durrantlab/55ff21a12a851d3602efcddd7ad4f699/raw/baa70e29c7377fb07ba3e37e2783daffaa01eae3/1xdn.pdb&st0=All–Ligand–Stick–Element&st1=All–Protein–Cartoon–Spectrum&cx=0&cy=2.6281&cz=-8.0649&crx=0&cry=0.00001&crz=0&crw=-1&e=environs/blood/&sh=false&hs=true
I’m currently working on an update to ProteinVR that will allow users to upload files from their local computers too, eliminating the need for remote hosting all together.
Take care.
- AuthorPosts
- The topic ‘Can’t load external url with sdf file’ is closed to new replies.