title: How to configure Apache to handle multiple domains with Access-Control-Allow-Origin header?
body: <p>I want to configure Apache to allow XMLHttpRequests from multiple, but not all domains.</p>
  <p>This works:</p>
  <pre><code>Header set Access-Control-Allow-Origin &quot;*&quot;
  </code></pre>
  <p>But it's unsafe, I want to allow domains specified by me, so after a bit of googling I got to this:</p>
  <pre><code>Header set Access-Control-Allow-Origin &quot;http://domain1.example http://domain2.example&quot;
  </code></pre>
  <p>But this only picks up first domain, the second is not allowed. How to properly specify multiple domains?</p>