mini_reverse_proxy

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

npm install mini_reverse_proxy
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 )

example:

$ curl -X GET http://localhost:3001/proxy?url=http://foo.com/api/v2/magazine/summary.json

This is normally used for AJAX + CORS

npm loves you