mirror of
https://github.com/nextcloud/server.git
synced 2024-08-30 17:57:26 +02:00
7 lines
209 B
JavaScript
7 lines
209 B
JavaScript
$(document).on('ajaxSend',function(elm, xhr, settings) {
|
|
if(settings.crossDomain === false) {
|
|
xhr.setRequestHeader('requesttoken', oc_requesttoken);
|
|
xhr.setRequestHeader('OCS-APIREQUEST', 'true');
|
|
}
|
|
});
|