Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including corsproxy with all npm packages installed. Try it out:

var corsproxy = require("corsproxy")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

corsproxy v1.5.0

standalone CORS proxy

corsproxy

standalone CORS proxy

Build Status Dependency Status devDependency Status

NPM

Setup

npm install -g corsproxy
corsproxy
# with custom port: CORSPROXY_PORT=1234 corsproxy
# with custom host: CORSPROXY_HOST=localhost corsproxy
# with debug server: DEBUG=1 corsproxy
# with custom payload max bytes set to 10MB (1MB by default): CORSPROXY_MAX_PAYLOAD=10485760 corsproxy

Usage

The cors proxy will start at http://localhost:1337. To access another domain, use the domain name (including port) as the first folder, e.g.

  • http://localhost:1337/localhost:3000/sign_in
  • http://localhost:1337/my.domain.com/path/to/resource
  • etc etc

License

MIT

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free