title: Nuxt.js/Axios self signed certificate error
body: <p>I have a problem with making a local <code>GET</code> request from http to https.</p>
  
  <p>Situation:
  I use a tool called Local(<a href="https://localwp.com/" rel="nofollow noreferrer">https://localwp.com/</a>) to quickly generate a local WordPress development environment. It's local address is <a href="https://backend.local" rel="nofollow noreferrer">https://backend.local</a> (via host file). I also have a Nuxt.js app running on <a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a>.</p>
  
  <p>With axios, I try to make a <code>GET</code> request to the WordPress REST api, but I get the following error:</p>
  
  <pre><code>NuxtServerError
  
  self signed certificate 
  </code></pre>
  
  <p>If I try the <code>fetch</code> method, I get the following response:</p>
  
  <pre><code>FetchError
  request to https://backend.local/wp-json/wp/v2/posts failed, reason: self signed certificate
  </code></pre>
  
  <p>It only works, when I make a <code>GET</code> request to a non-local URL.</p>
  
  <p>But after a few hours of googling and trying all the solutions, nothing worked and I am getting a bit frustrated now :)</p>
  
  <p>My setup is: MacBook Pro 2019 Catalina 10.15.4, Chrome 83.0.4103.61</p>
  
  <p>I hope someone has an answer for me :)</p>
  
  <p>Thank you!</p>