Merge pull request #12362 from owncloud/add-ocs-header-per-default

Add OCS API header per default
This commit is contained in:
Vincent Petry 2014-11-24 11:09:00 +01:00
commit 49ad10cfd0
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');
});