Corsy is a proxy injector for development to avoid CORS issues while building SPA applications.
- Using Homebrew tap, Install homebrew
brew tap sivsivsree/corsy
brew install sivsivsree/corsy/corsy
If windows Download the latest exe artifact from the Release Page.
Usage:
Options:
-p, --proxy string remote address to proxy with cors [REQUIRED]
-a, --addr string address:port to listen on :8080 (default ":8001")
-b, --blacklist strings Headers to remove from the request and response
-h, --help Show this message
-r, --max-redirects int Maximum number of redirects to follow (default 10)
-t, --timeout int Request timeout (default 15)
Example
corsy --proxy https://prod.example.com/api/v1/resource
or
corsy --addr ":8080" --proxy https://prod.example.com/api/v1/resource \
--timeout 20 --max-redirects 2 \
--blacklist X-Remote-Url
Do contribute and create issue if you feel something needs to be changed.
Made out of need, will help some of you - Siv 🧑🏻💻