Merge pull request #12362 from owncloud/add-ocs-header-per-default
Add OCS API header per default
This commit is contained in:
commit
49ad10cfd0
|
@ -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