title: Express proxy API calls with cookie
body: <p>I am using express where i have mocked API calls for my application.</p>
  
  <p>Is there any proxy that I can use to redirect my calls to my dev server ?</p>
  
  <p>below is my sample express code</p>
  
  <pre><code>var express = require('express');
  var app = express();
  var path = require('path');
  var cors = require('cors');
  
  
  app.use(express.static(path.join(__dirname, 'public'))); 
  app.use(express.static(path.join(__dirname, 'dist'))); 
  
  app.get('/brand', function(req,res){
      res.send({"brand":"Cadillac","origin":"USA"});
  });
  </code></pre>
  
  <p>When I run my application in local the API's from my code "<a href="http://localhost:3000/brand" rel="noreferrer">http://localhost:3000/brand</a>" should redirect to "<a href="http://www-dev.abc.com/brand" rel="noreferrer">http://www-dev.abc.com/brand</a>"</p>
  
  <p>Before redirecting I also need to set a cookie, as the API gives data only when there is a valid cookie.</p>
  
  <p>Is there any Proxy that I can use ? Could you provide any examples ?</p>