diff options
author | Lukas Reschke <lukas@owncloud.com> | 2014-11-21 19:54:19 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2014-11-21 19:54:19 +0100 |
commit | 8c2aeb9b2143c30b4ad066dd3558161815c37312 (patch) | |
tree | 6e7745326d1e494ba1c42f74f8501acd795f3f0e /core | |
parent | 13b06aa6dfeb7c63750461529b27494ed035707d (diff) | |
download | nextcloud-server-8c2aeb9b2143c30b4ad066dd3558161815c37312.tar.gz nextcloud-server-8c2aeb9b2143c30b4ad066dd3558161815c37312.zip |
Add OCS API header per default
Relieve @PVince from having to write it all the time ;-)
Diffstat (limited to 'core')
-rw-r--r-- | core/js/oc-requesttoken.js | 3 |
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'); +}); |