how to allow cors in php code example
Example 1: header cros orgin using php
<?php
header("Access-Control-Allow-Origin: *");
header("Access-Control-Allow-Headers: *");
...
Example 2: php strict-origin-when-cross-origin
header("Access-Control-Allow-Origin: *");