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 anywhere-door with all npm packages installed. Try it out:

var anywhereDoor = require("anywhere-door")

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

anywhere-door v1.0.0

node package for simulate cors origin server in your localhost

Anywhere Door

This package use for provide The simulator server for allow cors site


To use this package you need to install it global

npm install anywhere-door -g


Use as server

door --open

you can also use --port to specific port default is 3000, now use can go anywhere you want by pass query string url.


$.post(`http://localhost:3000?`, {
    "data": {......}

door will send request with method, body, header that just same as you send to door, and send response back to you just same what the cors site server send back to door.

Use cli

door [--options]

Avaliable options

--url // require eg. ""
--method // require eg. "get"
--header // require eg. "{Content-type: 'Application/Json'}"
--body // require eg. "{foo: 'bar'}"
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