title: No 'Access-Control-Allow-Origin' header - Laravel
body: <p>XMLHttpRequest cannot load <a href="http://myapi/api/rating" rel="noreferrer">http://myapi/api/rating</a>. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin '<a href="http://localhost:8104" rel="noreferrer">http://localhost:8104</a>' is therefore not allowed access. The response had HTTP status code 403.</p>
  
  <p>I can't figure out why I can't make CORS requests. I've install the middleware here, added it to the global http kernel, but it still doesn't work. Tried to create a custom middleware given stackoverflow suggestions but that also did not work. Also tried adding a Route group. Lastly, I tried setting the response headers manually in the request action. I'm really stuck - help is appreciated!</p>
  
  <p>See for code: <a href="https://gist.github.com/KerryRitter/0d7ababb7b9eb8d54f0ae55add9704a1" rel="noreferrer">https://gist.github.com/KerryRitter/0d7ababb7b9eb8d54f0ae55add9704a1</a></p>