php Access-Control-Allowed-Origin code example Example: php Access-Control-Allow-Origin header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");