title: Consuming Laravel Passport API with javascript (React + Axios) from another application
body: <p>I have managed to make run Laravel 5.4 and implemented the <a href="https://laravel.com/docs/5.4/passport#consuming-your-api-with-javascript" rel="nofollow noreferrer">API Authentication (Passport)</a>.
  <a href="https://i.stack.imgur.com/Oygcq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Oygcq.jpg" alt="enter image description here"></a></p>
  
  <p>What I would try to achieve is to make this as my API server and build React applications that would interact on this API.</p>
  
  <p>Does this mean I have to make routes on <code>routes\api.php</code>?</p>
  
  <p>Let's say I have a React app name <code>requestform</code> on development and running on <code>http://127.0.0.1:8080</code>. How will I consume an api route with axios or jquery?</p>
  
  <p>I can't seem to make the correct keyword to search on google and all the samples I can get are the ones that the API and the javascript application is on the same domain.</p>