oc-requesttoken.js 209 B

123456
  1. $(document).on('ajaxSend',function(elm, xhr, settings) {
  2. if(settings.crossDomain === false) {
  3. xhr.setRequestHeader('requesttoken', oc_requesttoken);
  4. xhr.setRequestHeader('OCS-APIREQUEST', 'true');
  5. }
  6. });