From c19aa3546f918ff3c3ea95b90b9413d3f1a1b799 Mon Sep 17 00:00:00 2001 From: Matthieu Jonglez Date: Wed, 14 Apr 2021 21:04:14 +0100 Subject: [PATCH] Fixes #3809. Enables cross-origin property type-ahead. (#3810) --- .../core/scripts/dialogs/extend-data-preview-dialog.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/main/webapp/modules/core/scripts/dialogs/extend-data-preview-dialog.js b/main/webapp/modules/core/scripts/dialogs/extend-data-preview-dialog.js index 0dc23d277..4b6673165 100644 --- a/main/webapp/modules/core/scripts/dialogs/extend-data-preview-dialog.js +++ b/main/webapp/modules/core/scripts/dialogs/extend-data-preview-dialog.js @@ -171,6 +171,12 @@ ExtendReconciledDataPreviewDialog.prototype._show = function(properties) { suggestConfig.key = null; suggestConfig.query_param_name = "prefix"; + // CORS/JSONP support + if (this._serviceMetadata.ui && this._serviceMetadata.ui.access) { + suggestConfig.access = this._serviceMetadata.ui.access; + } + + this._elmts.addPropertyInput.suggestP(suggestConfig).bind("fb-select", function(evt, data) { self._addProperty({ id : data.id,