title: Angular + Laravel 5.5 API
body: <p>I have two projects in different directories. The first one is my Angular app and the second one is Laravel 5.5 back-end. I have created an API which i want to call in my Angular app. When i try to get the API in Angular i get this response:</p>
  
  <pre><code>Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote 
  resource at http://localhost/. (Reason: CORS header ‘Access-Control-Allow-
  Origin’ missing).
  </code></pre>
  
  <p>Both projects are locally and i access Laravel from <code>http://localhost</code> and Angular from <code>http://localhost:4200</code></p>
  
  <p>I want to be able to get and post data locally to test my application. How can i fix this?</p>