I have a problem using Ionic to communicate with my php file stored in byethost.
The browser pops out the error saying that
XMLHttpRequest cannot load http://minority.byethost10.com/login.php.
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://localhost:8100' is therefore not allowed access.
The response had HTTP status code 403.
While my php file contains the header below:
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Header Origin, X-Requested-With, Content-Type, Accept");
Could you help to solve my problem? One more thing is that I use Paw to post the message to the server, it works well.