title: CORS headers not set on PHP
body: <p>Im trying to allow CORS on a PHP server
  I have the following code</p>
  
  <pre><code>&lt;?php 
  header('content-type: application/json; charset=utf-8');
  header("access-control-allow-origin: *");
  echo '&lt;p&gt;Hello World!!&lt;/p&gt;';
  ?&gt;
  </code></pre>
  
  <p>and a simple ajax request to fetch it using jquery</p>
  
  <p>I keep getting this CORS error on my dev tools</p>
  
  <blockquote>
    <p>No 'Access-Control-Allow-Origin' header is present on the requested
    resource. Origin '<a href="http://localhost:8080" rel="nofollow">http://localhost:8080</a>' is therefore not allowed
    access.</p>
  </blockquote>
  
  <p>I also used curl -i to check the response and im seeing it doesnt have the headers...
  what is wrong</p>
  
  <p>curl -i</p>
  
  <blockquote>
    <p>HTTP/1.1 200 OK Date: Mon, 31 Aug 2015 17:25:33 GMT<br>
    Content-Type:
    text/html<br>
    Content-Length: 97<br>
    Connection: keep-alive<br>
    Keep-Alive: timeout=30<br>
    Server: Apache/2<br>
    X-Powered-By: PHP/5.3.29<br>
    Cache-Control:
    private, pre-check=0, post-check=0, max-age=0<br>
    Expires: 0<br>
    Pragma:
    no-cache</p>
  </blockquote>