curl -X GET /foo/proxy?url=X

npm install mini_reverse_proxy
14 downloads in the last week
28 downloads in the last month

Sets up a proxy in /proxy.

Usage: GET|POST|PUT|etc http://host/proxy?url=TARGET_URL

TARGET_URL can be http or https

To prevent abuse we have hardcoded a whitelist ( see below )


$ curl -X GET http://localhost:3001/proxy?url=

This is normally used for AJAX + CORS

npm loves you