summaryrefslogtreecommitdiffstats
path: root/core/js/oc-requesttoken.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/js/oc-requesttoken.js')
-rw-r--r--core/js/oc-requesttoken.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/js/oc-requesttoken.js b/core/js/oc-requesttoken.js
index 02175a3d674..2f7548ecb77 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');
+});