nextcloud/core/js/oc-requesttoken.js

5 lines
111 B
JavaScript

$(document).on('ajaxSend',function(elm, xhr, s) {
xhr.setRequestHeader('requesttoken', oc_requesttoken);
});