Add OCS API header per default
Relieve @PVince from having to write it all the time ;-)
This commit is contained in:
parent
13b06aa6df
commit
8c2aeb9b21
|
@ -1,3 +1,4 @@
|
|||
$(document).on('ajaxSend',function(elm, xhr) {
|
||||
xhr.setRequestHeader('requesttoken', oc_requesttoken);
|
||||
});
|
||||
xhr.setRequestHeader('OCS-APIREQUEST', 'true');
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue