title: Axios change http to https
body: <p>I have server that accept only http (no https). And when I call an api, axios automatically change http to https.</p>
  
  <p>I create axios instance here:</p>
  
  <pre><code>export const axiosAgent = axios.create({
      baseURL: "http://xxx.xxx.xxx/api/v1/",
  });
  </code></pre>
  
  <p>But in browser http changes to https, so it become: <code>https://xxx.xxx.xxx/api/v1/all</code></p>
  
  <p>and I get <code>net::ERR_NAME_NOT_RESOLVED</code></p>
  
  <p>How can I prevent that?</p>
  
  <p><strong>UPDATE</strong>
  Request Header:</p>
  
  <pre><code>Provisional headers are shown
  Accept: application/json, text/plain, */*
  Access-Control-Allow-Origin: *
  Referer: http://localhost:3000/patients
  User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
  </code></pre>
  
  <p>and there is no response header.</p>
  
  <p>and now I get <code>net::ERR_SSL_PROTOCOL_ERROR</code></p>