header cross origin using php code example
Example 1: header cros orgin using php
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: *");
...
Example 2: php access origin
<?php
header("Access-Control-Allow-Origin: *");