https://github.com/richardzcode/simple-proxy-server
Simple ready to work proxy server base on nodejs http-proxy
https://github.com/richardzcode/simple-proxy-server
cors nodejs proxy proxy-server server
Last synced: 12 months ago
JSON representation
Simple ready to work proxy server base on nodejs http-proxy
- Host: GitHub
- URL: https://github.com/richardzcode/simple-proxy-server
- Owner: richardzcode
- License: mit
- Created: 2018-07-19T20:47:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-09T17:26:51.000Z (over 7 years ago)
- Last Synced: 2025-01-27T15:44:30.262Z (about 1 year ago)
- Topics: cors, nodejs, proxy, proxy-server, server
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-proxy-server
Simple ready to work proxy server base on nodejs http-proxy
```
git clone https://github.com/richardzcode/simple-proxy-server.git
cd simple-proxy-server
npm install
```
Help
```
node app.js --help
```
Start Server
```
node app.js --target $target_endpoint$
```
Add Headers
```
node app.js --target $target_endpoint$ --header Content-Type application/json
```
Add Response Headers
```
node app.js --target $target_endpoint$ \
--response_header Access-Control-Allow-Origin '*' \
-H Access-Control-Allow-Methods 'GET, POST, PUT, DELETE, OPTIONS'
```