how to allow cors on php api code example
Example: header cros orgin using php
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: *");
...
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: *");
...