Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 14 days 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 6 years ago)
- Default Branch: master
- Last Pushed: 2018-08-09T17:26:51.000Z (over 6 years ago)
- Last Synced: 2024-11-29T03:16:37.939Z (2 months 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'
```