Take a look at your .jsfile, make sure you use the correct ajax url ( //your_site.com/handlerinstead http://your_site.com/handler), for example:
$.ajax({
url:'//your_site.com/handler',dataType:'json',type:'get',
success: function(data){...},
complete:function(xhr, textStatus){...}
});
user4535610
source
share