Convenient Node.js app for circumventing CORS issues when developing on localhost.
Want to see pretty graphs? Log in now!
npm install relayed
|36||downloads in the last week|
|78||downloads in the last month|
|Last Published By|
|Version||0.3.3 last updated a month ago|
|Keywords||CORS, AJAX, WebSockets|
|Dependencies||grunt, grunt-contrib-jshint, minimist, cli-color, pad|
Convenient Shell/Node script for circumventing CORS issues when developing on localhost.
npm install relayed -g
When you're developing on
localhost, you may not want to go through configuring CORS when making AJAX requests. Instead Relayed relays all requests to the foreign server via localhost.
- All parameters are passed along;
- Correct HTTP verbs are maintained;
- HTTPS/HTTP protocols supported;
The recommended method is running it via the Shell script.
relayed -h npm.org -p 80
localhost:8910 in your browser and npm.org will be returned. Please remember that Relayed is only for development.
-h <host>– Hostname to relay to (required);
-p <port>– Port number of the host (defaults to 80);
-s– Use HTTPS for the transport protocol;
localhost:8910in your browser;