oc-requesttoken.js 209 B

1234567
  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. });