title: How to send GET request with axios to jwt-auth?
body: <p>In  vue/cli 4 / vuejs 2.6.10 / vuex,3.0.1 app I make axios request</p>
  
  <pre><code>axios.get(apiUrl + '/personal/user_groups/'+user_id )  /
     .then((response) =&gt; {
  </code></pre>
  
  <p>to backend app(Laravel 5/jwt-auth) with routes in jwt.auth group :</p>
  
  <pre><code>Route::group(['middleware' =&gt; 'jwt.auth',  'prefix' =&gt; 'personal', 'as' =&gt; 'personal.'], function ($router) {
      Route::post('user_groups', 'API\PersonalController@user_groups');
  </code></pre>
  
  <p>and got error :</p>
  
  <pre><code>"error":"UNAUTHORIZED_REQUEST"
  </code></pre>
  
  <p>I found a way of sending the POST request with config parameter and token parameter, which I got on successful login:</p>
  
  <pre><code>let config = {
      withCredentials:true, 
      headers: {
          'Content-Type': 'application/json',
          'Access-Control-Allow-Origin': '*',
      }
  }
  axios({ url: apiUrl + '/personal/user_groups', data: {user_id:user_id, token: this.getters.token}, method: 'POST', config : config })
      .then(response =&gt; {
  </code></pre>
  
  <p>But if there is a way to send the GET request and I made in the topic start?</p>