Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zinserjan/express-http-proxy-extended
https://github.com/zinserjan/express-http-proxy-extended
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zinserjan/express-http-proxy-extended
- Owner: zinserjan
- License: mit
- Created: 2016-02-23T12:32:45.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-02-23T14:12:00.000Z (almost 9 years ago)
- Last Synced: 2025-01-01T09:18:05.631Z (29 days ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# express-http-proxy-extended
Express proxy middleware to forward request to another host and pass response back
## Install
```bash
$ npm install express-http-proxy-extended --save
```## Usage
```js
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