var xhttp=new XMLHttpRequest(); xhttp.open(\'GET\', \'foo.xml\', false);
F12 pops back: SCRIPT5: Access is denied. on Line 95, which is
$.ajax({ url: '//freegeoip.net/json/', type: 'POST', dataType: 'jsonp', success: function(location) { alert(location.ip); } });
This code will work https sites too