I have an ajax for save address. I have some parameters like username, Address, Location. Now user can see all parameters and is not safe.
ajax code:
$.ajax({ 
        url: 'inc/saveAddress.php',
        data: {"username": window.username,
               "name": name,
               "address": address,
               "lat": window.lats,
               "lng": window.lngs,
               },
        type: 'post',
        success: function(result)
        {
            window.location.replace('https://example.com');
        }
    });
How can I check this requst is from what address by PHP? or anything to safe that.
 
    