title: Weird... Angular Proxy not working properly
body: <p>Im working on an <em><strong>Angular</strong></em> / <em><strong>Laravel</strong></em> project , but I’m facing troubles configuring the Grunt proxy properly, I've followed several tutorials and made some research in order to solve this issue , but I haven’t Succeded.</p>
  <p>The problem is that the configured Proxy  is not redirecting to the host as it should be, I setted to forward request from <code>/localhost:9000/api</code> to <code>/localhost:8000/api</code> , but when I make a request :</p>
  <p>Referer URL : <code>http://localhost:9000/api/whataver</code><br />
  Request URL : <code>http://localhost:9000/api/whatever</code></p>
  <p>Is making a request to the same host, so the requests are not be proxy correctly, any suggestions?</p>
  <p>Here's part of my grunt file:</p>
  <pre><code>connect: {
    options: {
      port: 9000,
      // Change this to '0.0.0.0' to access the server from outside.
      hostname: '127.0.0.1',
      livereload: 35729
    },
    proxies: [
        {
            context: '/api',
            host: '127.0.0.1',
            port: 8000,
            https: false,
            changeOrigin: false
        }
    ],
    livereload: {
      options: {
        open: true,
        base: [
         '.tmp',
         '&lt;%= yeoman.app %&gt;'
        ],
        middleware: function (connect,options) {
  
          var middlewares = [];
          
          if (!Array.isArray(options.base)) {
            options.base = [options.base];
          }
  
          // Set up the proxy
          middlewares.push(require('grunt-connect-proxy/lib/utils').proxyRequest);
  
          //server static files
          middlewares.push(
            modRewrite(['^[^\\.]*$ /index.html [L]']),
            connect.static('.tmp'),
            connect().use(
              '/bower_components',
               connect.static('./bower_components')
            ),
            connect.static(appConfig.app)
          );
          return middlewares;
        }
      }
    }
  </code></pre>
  <p>I'd appreciate any help, Thank you!</p>