I am getting json data from api with this code:
$.getJSON( '../propertylocator/api/configurations', function(data) {
$.each( data.rows, function(i, rows) {
//var homeLatlng= new google.maps.LatLng(0, -180);
$('#map_canvas').gmap('addShape', {
'Polyline': new google.maps.LatLng(rows.latitude, rows.longitude),
'bounds': true
}).click(function() {
$('#map_canvas').gmap('openInfoWindow', { 'content': '<strong><a href="detailPage.php?id='+ rows.propertyid +'">'+rows.propertyname+'</a></strong><br/>'+rows.propertyoverview }, this);
});
});
Work fine, but yesterday I has included basic authentication with encrypted password to the web app, how I can include authentication to this code to authenticate when get json api?
Thanks