https://github.com/dkaoster/local-cors-anywhere
A quick npx script for running a local cors-anywhere instance
https://github.com/dkaoster/local-cors-anywhere
Last synced: 8 months ago
JSON representation
A quick npx script for running a local cors-anywhere instance
- Host: GitHub
- URL: https://github.com/dkaoster/local-cors-anywhere
- Owner: dkaoster
- License: mit
- Created: 2021-02-25T03:50:05.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-06T06:37:35.000Z (over 4 years ago)
- Last Synced: 2025-09-21T23:37:23.052Z (9 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# local-cors-anywhere
A quick npx script for running a local [cors-anywhere](https://github.com/Rob--W/cors-anywhere) instance.
## Usage
```
npx local-cors-anywhere
```
```
Usage: local-cors-anywhere [options]
Options:
-V, --version output the version number
-h, --host Listen on a specific host, or set the HOST env variable
-p, --port Listen on a specific port, or set the PORT env variable
--help display help for command
```
Then, in order to proxy to `https://github.com`, simply make a request to `http://localhost:8080/https://github.com`, replacing with any configuration options you may have set.
See [cors-anywhere](https://github.com/Rob--W/cors-anywhere) for more information.