embedding jolecule on an https page (versus http)
shadiakiki1986 opened this issue ยท 2 comments
shadiakiki1986 commented
Hello. Great package ๐
When trying to embed jolecule in a webpage via jsfiddle following your instructions, I got an error (visible in the browser console) about the browser being unable to load mixed content
. The problem was that jsfiddle works on https
, but jolecule was trying to load files from http
. The solution was to
- replace
http://jolecule.com/js/jolecule.js
withhttps://...
in the loaded javascript library - replace
saveViewsUrl: 'http://jolecule.com', // url to fetch views
withsaveViewsUrl: 'https://...
in thejolecule.makePdbDataServer
function call options. A working jsfiddle can be found here.
Perhaps it would be a good idea to add a note on your instructions page about this for future-comers.
boscoh commented
Thanks Shadi, this is really helpful, I will update this! Bosco
โฆOn Sun, Apr 28, 2019 at 5:52 PM Shadi Akiki ***@***.***> wrote:
Hello. Great package ๐
When trying to embed jolecule in a webpage via jsfiddle following your
instructions <http://jolecule.com/embed/pdb?pdb_id=1mbo>, I got an error
(visible in the browser console) about the browser being unable to load
mixed content. The problem was that jsfiddle works on https, but jolecule
was trying to load files from http. The solution was to
- replace http://jolecule.com/js/jolecule.js with https://... in the
loaded javascript library
- replace saveViewsUrl: 'http://jolecule.com', // url to fetch views
with saveViewsUrl: 'https://... in the jolecule.makePdbDataServer
function call options. A working jsfiddle can be found here
<https://jsfiddle.net/shadiakiki1986/rozqvLc2/>.
Perhaps it would be a good idea to add a note on your instructions page
about this for future-comers.
โ
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABMAAFCZDL557O5WWHZ4QLPSVJUBANCNFSM4HI5426Q>
.
boscoh commented
Updated