Activate plugin registry
Change-Id: I1c9305b21081b8f754adedc49326a3cab578df29
diff --git a/dev/js/src/plugin/service.js b/dev/js/src/plugin/service.js
index be567be..3152f38 100644
--- a/dev/js/src/plugin/service.js
+++ b/dev/js/src/plugin/service.js
@@ -30,7 +30,13 @@
load : function () {
if (this._load)
return this._load;
-
+
+ if (window.location.protocol == 'https:' &&
+ this.src.toLowerCase().indexOf('https:') != 0) {
+ KorAP.log(0, "Service endpoint is insecure");
+ return;
+ };
+
// Spawn new iframe
let e = document.createElement('iframe');
e.setAttribute('allowTransparency',"true");