add crossDomain attribute in ajax request to get data