mini_reverse_proxy

0.0.8 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i mini_reverse_proxy

Weekly Downloads

7

Version

0.0.8

License

none

Last publish

Collaborators

  • aldobucchi