title: CORS Laravel VueJS
body: <p>I'm trying to do a get with axios from VueJS to Laravel which is my API.</p>
  
  <p>I got this error :</p>
  
  <blockquote>
    <p>Access to XMLHttpRequest at '<a href="http://api.test/api/events/1/" rel="nofollow noreferrer">http://api.test/api/events/1/</a>' from origin >'<a href="http://localhost:8080" rel="nofollow noreferrer">http://localhost:8080</a>' has been blocked by CORS policy: No 'Access-Control->Allow-Origin' header is present on the requested resource.</p>
    
    <p>Uncaught (in promise) Error: Network Error
    at createError (createError.js?2d83:16)
    at XMLHttpRequest.handleError (xhr.js?b50d:87)</p>
  </blockquote>
  
  <p>I've tried to create a middleware named 'cors' like <a href="https://stackoverflow.com/questions/37860851/vuejs-and-laravel-post-request-cors">here</a> but it's not working for me or maybe I'm doing it badly ?</p>
  
  <p>Strange thing ? is that's working with Postman.</p>
  
  <p>Thank for the help ! :)</p>