blob: d5dcecdb5aba8f62ab1df21bcd7640f9beb68c45 (
plain)
1
2
3
4
5
6
|
$(document).on('ajaxSend',function(elm, xhr, settings) {
if(settings.crossDomain === false) {
xhr.setRequestHeader('requesttoken', oc_requesttoken);
xhr.setRequestHeader('OCS-APIREQUEST', 'true');
}
});
|