ajax access-control-allow-origin php header code example Example: php access origin <?php header("Access-Control-Allow-Origin: *");