@vighnesh153/localhost-cors-proxy

0.4.7 • Public • Published

@vighnesh153/localhost-cors-proxy

npm (scoped) GitHub GitHub issues

A simple proxy server for unlocking CORS disabled urls on localhost

Usage

To proxy the api.github.com on localhost, you can run the following command. It will start the server on localhost:1234

npx @vighnesh153/localhost-cors-proxy \
  --target-url https://api.github.com \
  --port 1234

Then, you can hit localhost:1234/* instead of https://api.github.com/* and you won't get CORS blocked.

Options

Option Required Description
-p, --port true Specify the localhost port for the proxy server
-t, --target-url true The url to be CORS enabled

Readme

Keywords

none

Package Sidebar

Install

npm i @vighnesh153/localhost-cors-proxy

Weekly Downloads

0

Version

0.4.7

License

MIT

Unpacked Size

4.5 kB

Total Files

4

Last publish

Collaborators

  • vighnesh153