Ajax call with header

JavaScript

Ext.Ajax.request({
url: 'https://danfoss.sharepoint.com/_vti_bin/homeapi.ashx/sites/recent',
method: 'POST',
headers: { 'SPHome-ClientType': 'SharePointIOS' },
success: function(response) {
    console.log(response);   
},// function called on success
failure: function(result) {Ext.MessageBox.alert('Error', 'Some problem occurred');}
});