2015-09-14 15:01:34 +03: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 21:54:19 +03:00
|
|
|
});
|