This is the software running on https://cors.isomorphic-git.org/ - a free service (generously sponsored by Clever Cloud) for users of isomorphic-git that enables cloning and pushing repos in the browser.
It is derived from https://github.com/wmhilton/cors-buster with added restrictions to reduce the opportunity to abuse the proxy. Namely, it blocks requests that don't look like valid git requests.
npm install @isomorphic-git/cors-proxyStart proxy on default port 9999:
cors-proxy startStart proxy on a custom port:
cors-proxy start -p 9889Start proxy in daemon mode. It will write the PID of the daemon process to $PWD/cors-proxy.pid:
cors-proxy start -dKill the process with the PID specified in $PWD/cors-proxy.pid:
cors-proxy stopEnvironment variables:
PORTthe port to listen to (if run withnpm start)ALLOW_ORIGINthe value for the 'Access-Control-Allow-Origin' CORS header
This work is released under The MIT License