nextcloud/core/js/oc-requesttoken.js

3 lines
106 B
JavaScript

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