Skip to content

Commit

Permalink
Completer.js: Include X-Requested-With in completion requests
Browse files Browse the repository at this point in the history
fixes #212
  • Loading branch information
nilmerg committed Oct 17, 2023
1 parent 656c1dc commit 5134d01
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions asset/js/widget/Completer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 5134d01

Please sign in to comment.