diff --git a/asset/js/widget/Completer.js b/asset/js/widget/Completer.js index a498d823..6d603802 100644 --- a/asset/js/widget/Completer.js +++ b/asset/js/widget/Completer.js @@ -213,6 +213,7 @@ define(["../notjQuery"], function ($) { this.nextSuggestion = setTimeout(() => { let req = new XMLHttpRequest(); req.open('POST', this.input.dataset.suggestUrl, true); + req.setRequestHeader('X-Requested-With', 'XMLHttpRequest'); req.setRequestHeader('Content-Type', 'application/json'); if (typeof icinga !== 'undefined') {