title: SET WithCredentials globally with axios on VueJS
body: <p>In main.js, I put </p>
  
  <pre><code>axios.defaults.withCredentials = true;
  </code></pre>
  
  <p>It should work, but by this way the cookies are not sent to the back end.</p>
  
  <p>Here the request header</p>
  
  <p><a href="https://i.stack.imgur.com/DOsGh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DOsGh.png" alt="enter image description here"></a></p>
  
  <p>If in specific request I add {withCredentials: true}, it's work fine</p>
  
  <p>However, I put an interceptor for all request, to check the options sent, </p>
  
  <p>Do you have an idea not to put in each request this option?</p>
  
  <p>Thank you in advance</p>
  
  <p><a href="https://i.stack.imgur.com/yBseX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yBseX.png" alt="enter image description here"></a></p>