0.0.1 • Published 13 years ago
tinycors v0.0.1
Tiny CORS proxy to allow JS in the browser to access a remote service.
Example
$ tinycors.js --port 8899 en.wikipedia.org:80Now (using jQuery) try a
$.get('http://localhost:8899/w/api.php?action=query&prop=categories&format=json&titles=London', function (result) {
console.log(result);
});Install
First install npm
$ curl https://npmjs.org/install.sh | shThen tinycors
$ npm install -g tinycors0.0.1
13 years ago