I have the following function in a .js file in index.html
function getValues(){ $.ajax({ type: \'POST\', url: \"http://localhost/getData/getdata.php\
Read the SOP. Accessing data from a domain other than the current one is blocked for security reasons.