nextcloud/core/js/oc-requesttoken.js

5 lines
156 B
JavaScript
Raw Normal View History

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