summaryrefslogtreecommitdiff
path: root/searx/static/themes/simple/js/searx.js
diff options
context:
space:
mode:
Diffstat (limited to 'searx/static/themes/simple/js/searx.js')
-rw-r--r--searx/static/themes/simple/js/searx.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/searx/static/themes/simple/js/searx.js b/searx/static/themes/simple/js/searx.js
index 3e9ad3e7f..8fb2471b0 100644
--- a/searx/static/themes/simple/js/searx.js
+++ b/searx/static/themes/simple/js/searx.js
@@ -1531,6 +1531,10 @@ module.exports = AutoComplete;
Url: "./autocompleter",
EmptyMessage: searx.no_item_found,
HttpMethod: searx.method,
+ HttpHeaders: {
+ "Content-type": "application/x-www-form-urlencoded",
+ "X-Requested-With": "XMLHttpRequest"
+ },
MinChars: 4,
Delay: 300,
}, "#" + qinput_id);