It is better to use http instead of https. Because https is a secure protocol to consume service from database.
Please find below codes to solve your issue, I hope this will helpful to you.
$.ajax({
url:'https://,
data: myData,
type:'GET',
crossDomain:true,
dataType:'jsonp',
success:function(){ alert("Success");},
error:function(){ alert('Failed!');},
beforeSend: setHeader
});
Regards,
Karthik A