title: .htaccess - how to set headers dynamically per domain?
body: <p>I'm trying to get CORS functioning with multiple domains.</p>
  
  <pre><code>    Header add Access-Control-Allow-Origin "http://localhost, http://multiplay.io"
  </code></pre>
  
  <p>However, it seems that most browsers only support one domain. I've been told that the solution is to set the header per incoming domain.</p>
  
  <p>How do you do this using the .htaccess file?</p>