title: Header set Access-Control-Allow-Origin in .htaccess doesn't work
body: <p>I can't figure out why my <code>.htaccess</code> header settings doesn't work.</p>
  
  <p>My <code>.htaccess</code> file content:</p>
  
  <pre><code>Header set Access-Control-Allow-Origin *
  Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
  Header always set Access-Control-Allow-Headers "*"
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php [QSA,L]
  </code></pre>
  
  <p>But when I remove <code>Header</code>'s and add them in <code>index.php</code> then everything works fine. </p>
  
  <pre><code>header("Access-Control-Allow-Origin: *");
  header("Access-Control-Allow-Methods: PUT, GET, POST, DELETE, OPTIONS");
  header("Access-Control-Allow-Headers: *");
  </code></pre>
  
  <p>What am i missing?</p>