Skip to content

Commit

Permalink
Workaround for HTTP URIs in HTTPS contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
avillar committed Jul 28, 2023
1 parent a3ec2e0 commit df9dc9a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ogc/bblocks/slate-assets/javascripts/all_nosearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ $(function() {
activeRainbow = uri;
$rainbowPopup.html('').addClass('loading');
showRainbowPopup($this);
$.ajax(uri, {
var jsonldUrl = 'https://defs.opengis.net/vocprez/object?uri=' + encodeURIComponent(uri) + '&_mediatype=application/ld+json';
$.ajax(jsonldUrl, {
'headers': {
'Accept': 'application/json',
},
Expand Down

0 comments on commit df9dc9a

Please sign in to comment.