2015-09-14 12:01:34 +00:00
|
|
|
$(document).on('ajaxSend',function(elm, xhr, settings) {
|
|
|
|
if(settings.crossDomain === false) {
|
|
|
|
xhr.setRequestHeader('requesttoken', oc_requesttoken);
|
|
|
|
xhr.setRequestHeader('OCS-APIREQUEST', 'true');
|
|
|
|
}
|
2014-11-21 18:54:19 +00:00
|
|
|
});
|