Add CSP compliance to plugins
Change-Id: Ia13082bbad5348c8cbb5f5cb976bfe32c9fe0a27
diff --git a/dev/js/src/api.js b/dev/js/src/api.js
index 75a4e68..cfc0625 100644
--- a/dev/js/src/api.js
+++ b/dev/js/src/api.js
@@ -107,7 +107,15 @@
let url = KorAP.URL + "/corpus?cq=" + encodeURIComponent(cq);
KorAP.API.getJSON(url, cb, "CorpusInfo: " + cq);
};
-
+
+
+ /**
+ * Retrieve a list of all plugin objects to
+ * establish in the frontend.
+ */
+ KorAP.API.getPluginList = function (url, cb) {
+ KorAP.API.getJSON(url, cb, "Plugin-List")
+ };
/**
* General method to retrieve JSON information