function Get_Platforms() {
$.ajax({
xhrFields: { cors: false },
type: "GET",
url: "http://10.64.127.94:5000/api/get_platforms",
contentType: 'application/json; charset=utf-8',
dataType: 'json',
success: function (data) {
alert(data);
},
error: function (x, y, z) {
alert(x.responseText + "," + x.status);
}
});
}
http://10.64.127.94:5000/api/get_platforms
{
"final_result": [
"THORIUM",
"RADIUM",
"URANIUM",
"THALLIUM"
]
}
I am getting undefined error when the page loads and cant see the response.