title: How to specify subdirectory in Access-Control-Allow-Origin
body: <p>It would be nice to do something like this</p>
  
  <pre><code>header('Access-Control-Allow-Origin: http://example.com/subdir');
  </code></pre>
  
  <p>It doesn't seem to be working though.</p>
  
  <p>Can it be done ? If so, how ?</p>
  
  <p>The goal is to allow only referrers with <code>subdir</code>. </p>