nextcloud/core/js/oc-requesttoken.js

3 lines
112 B
JavaScript

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