cors for 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: *");
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: *");
...
<?php
header("Access-Control-Allow-Origin: *");