nextcloud/core/js/oc-requesttoken.js

4 lines
113 B
JavaScript

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