diff --git a/core/js/oc-requesttoken.js b/core/js/oc-requesttoken.js index 02175a3d67..2f7548ecb7 100644 --- a/core/js/oc-requesttoken.js +++ b/core/js/oc-requesttoken.js @@ -1,3 +1,4 @@ $(document).on('ajaxSend',function(elm, xhr) { xhr.setRequestHeader('requesttoken', oc_requesttoken); -}); \ No newline at end of file + xhr.setRequestHeader('OCS-APIREQUEST', 'true'); +});