express-http-proxy-extended
v1.0.0
Published
Downloads
5
Readme
express-http-proxy-extended
Express proxy middleware to forward request to another host and pass response back
Install
$ npm install express-http-proxy-extended --save
Usage
var proxy = require('express-http-proxy-extended');
var app = require('express');
app.use('/proxy', proxy('www.google.com', {
rewriteCookies: true, // rewrites secure, path & domain of received cookies
cookiePath: '/', // default is /
cookieDomain: '' // default is ''
}));
app.listen(3000, function () {
console.log('Example app listening on port 3000!');
});
Licence
MIT