@vighnesh153/localhost-cors-proxy
v0.4.7
Published
A simple proxy server for unlocking CORS disabled urls on localhost
Downloads
18
Readme
@vighnesh153/localhost-cors-proxy
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 |