I use the laravel framework, the apach environment built by xampp,
header ("content-type:application:json;charset=utf8");
header("Access-Control-Allow-Origin:*");
header("Access-Control-Allow-Methods:POST");
header("Access-Control-Allow-Headers:x-requested-with,content-type");
I added such a header header to the php code, but it didn"t work.
ask for advice!