Please help me. was trying to use phonegap with html index and then ajax query through the hosted db with the php files for response so that i can make a login like feature in my phonegap project. Please admin! help! gracias! arigatou! Merci! Salamat!
Failed to load https://likayiligan.epizy.com/Likay/www/php/login.php: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin ‘http://localhost:8888’ is therefore not allowed access.
I dont know how to solve this
i have included these tags
header('Access-Control-Allow-Origin: *');
header('Access-Control-Allow-Methods: POST,GET,OPTIONS');
header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
header('content-type: text/json');
header("Content-Type: text/xml; charset=utf-8");
on the php file. login.php which is hosted on your hosting services.
with the ajax [url: “https://likayiligan.epizy.com/Likay/www/php/login.php”].
yet to no avail it provides the error above mentioned. Please! i need your help! matsaalaa