Is possible to allows cors access from one domain only in php
<p>I am created a PHP RESP API application. I need to access this application from another domain using its API. Is it possible to specify cors domain in Header</p>

<pre><code>&lt;?php
 header("Access-Control-Allow-Origin: *");
 header("Access-Control-Allow-Headers: *");
 ...
</code></pre>

<p>The above code allows cors from every domain.But i need to allow cors from a specific domain only.</p>