0

This is my code for a service

function usersClicked() {
    var response;
    $.ajax({
        url: 'somedomain.com/get_users',
        type: 'GET',
        dataType: 'jsonp',
        crossDomain: true,
        contentType: "application/json; charset=utf-8",
        success: function (data, status, xhr) {
            alert(data);
        }
    });
}

In network tab, I am able to see the response but it is unable to alert data. No dialog is being shown. can anyone help me with thisenter image description here

Response Header enter image description here

Logic
  • 2,230
  • 2
  • 24
  • 41

0 Answers0