php access control allow origin works only in 1 php code example
Example: php Access-Control-Allow-Origin
header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");
header("Access-Control-Allow-Origin: {$_SERVER['HTTP_ORIGIN']}");