Fixes #3809. Enables cross-origin property type-ahead. (#3810)

This commit is contained in:
Matthieu Jonglez 2021-04-14 21:04:14 +01:00 committed by GitHub
parent acc68187cb
commit c19aa3546f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,