title: How to enable CORS with PHP
body: <p>I have an angular 4 app talking to a php script that resides on WAMP (www folder) they are both on my local machine. I get this error logged in the browser when i hit the script.</p>
  
  <pre><code>No 'Access-Control-Allow-Origin' header is present on the requested resource. 
  Origin 'http://localhost:4200' is therefore not allowed access. 
  The response had HTTP status code 404.
  </code></pre>
  
  <p>I know its because i am trying to access from localhost to localhost that this problem occurs. </p>
  
  <p>I did a bit of reading and it appears i need to fix it from wamp server. Not sure how to do that on wamp.</p>