title: Why is config.proxy ignored when making an axios request within a webpack project?
body: <h2>My goal</h2>
  
  <p>I want to perform a request with <a href="https://github.com/axios" rel="nofollow noreferrer">axios@0.18.0</a> using an http proxy fully efficient (squid). My project is a vue project based on the <em>webpack</em> template. <code>vue init webpack proxytest</code></p>
  
  <h2>The issue</h2>
  
  <p>When I try to perform the request, axios 'ignores' the <strong>proxy</strong> property inside the config object passed.</p>
  
  <p>I noticed that when I run the <em>exact same</em> code with pure nodejs, everything works just perfectly fine.</p>
  
  <p>Is there some configuration that I need to specify excepting the axios request configuration when using axios as a npm module within webpack ?</p>
  
  <h2>The code</h2>
  
  <pre><code>import axios from 'axios';
  
  const config = {
    proxy: {
      host: 'host',
      port: 3128,
    },
    method: 'GET',
  };
  
  axios('http://www.bbc.com/', config).then((res) =&gt; {
    console.log(res);
  }).catch((err) =&gt; {
    console.error(err);
  });
  </code></pre>
  
  <p>Of course, when testing, I change <em>'host'</em> into the proxy IP.</p>
  
  <hr>
  
  <p>I tried to change the <strong>method</strong> property to <em>POST</em> in order to check if axios considered the config. It does consider the config passed. 
  I tried to put a fake port so I could check if the proxy property was considered. It's not considered.</p>
  
  <h2>The output</h2>
  
  <p><a href="https://i.stack.imgur.com/Skw6J.png" rel="nofollow noreferrer">output...</a></p>
  
  <p>Now, I'm aware of what CORS is. The point is I'm constently getting this output when performing the requests. And if the proxy was used by axios, I think no CORS "error" would show up as my proxy is a VPS.</p>
  
  <p>Thank you.</p>