diff --git a/core/js/oc-requesttoken.js b/core/js/oc-requesttoken.js
index 02175a3d674d9968a6a3dc8a43a023661b7ebc85..2f7548ecb77d4f872d0feb4344f7e90242f12b58 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');
+});