comunica / jQuery-Widget.js

🖼 A jQuery widget to query heterogeneous interfaces using Comunica SPARQL
http://query.linkeddatafragments.org/
MIT License
18 stars 35 forks source link

'set default' proxy should apply same protocol as used for hosting the widget #120

Closed marc-portier closed 2 years ago

marc-portier commented 2 years ago

the default proxy value is hardcoded as http://proxy.linkeddatafragments.org/ which leads to "mixed content" errors when trying to use it when the widget was deployed on https server (like e.g. https://query.linkeddatafragments.org/)

by using the document.location.protocol one can have this button automatically switch to a working alternative

this slightly changes the meaning of 'set default' 'set to some adapted default to be actually working in this setting' :)

am working up a PR with this suggestion