mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
5 lines
240 B
JavaScript
5 lines
240 B
JavaScript
// add X-Combodo-Ajax for all request (just after jaquery is loaded)
|
|
// mandatory for ajax requests with JQuery (CSRF protection)
|
|
$(document).ajaxSend(function (event, jqxhr, options) {
|
|
jqxhr.setRequestHeader('X-Combodo-Ajax', 'true');
|
|
}); |