]> git.koha-community.org Git - koha.git/commit
Bug 36084: Fix is_ajax by setting X-Requested-With header
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 20 Feb 2024 09:00:11 +0000 (10:00 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 1 Mar 2024 10:00:48 +0000 (11:00 +0100)
commit6a9ff124a5b30ad2e7a8244e950516d6003903f4
treed84d5286a3f06397fe4ffceceaa0624575ae0b96
parent50f383de75efaec54a6a69dd199805e37793ee84
Bug 36084: Fix is_ajax by setting X-Requested-With header

Some svc scripts (and controllers) are using using is_ajax to guess if
it's an AJAX request.
$.ajax is setting the (non standard) X-Requested-With header, but the
low level JS 'fetch' does not.

This patch set it in http-client.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/js/fetch/http-client.js