HELP!

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

Erratum : https://likayiligan.epizy.com/Likay/php/login.php

The Problem is the server doesn’t support ajax. This’s the time we should left infinitely free

@BenyaminL said:
The Problem is the server doesn’t support ajax. This’s the time we should left infinitely free

Ajax itself should work fine, as long as you only use ajax with scripts on the same domain and don’t use it for a live chat script.

@Admin said:

@BenyaminL said:
The Problem is the server doesn’t support ajax. This’s the time we should left infinitely free

Ajax itself should work fine, as long as you only use ajax with scripts on the same domain and don’t use it for a live chat script.

The problem is the server implement the js test cookie that doesn’t works when we directly hit the api that we create, or web service or such…