Add OCS API header per default

Relieve @PVince from having to write it all the time ;-)
This commit is contained in:
Lukas Reschke 2014-11-21 19:54:19 +01:00
parent 13b06aa6df
commit 8c2aeb9b21
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
$(document).on('ajaxSend',function(elm, xhr) {
xhr.setRequestHeader('requesttoken', oc_requesttoken);
});
xhr.setRequestHeader('OCS-APIREQUEST', 'true');
});