server/core/js/oc-requesttoken.js

5 lines
156 B
JavaScript
Raw Normal View History

2014-04-21 12:42:50 +00:00
$(document).on('ajaxSend',function(elm, xhr) {
xhr.setRequestHeader('requesttoken', oc_requesttoken);
xhr.setRequestHeader('OCS-APIREQUEST', 'true');
});