tinycors

0.0.1 • Public • Published

Tiny CORS proxy to allow JS in the browser to access a remote service.

Example

$ tinycors.js --port 8899 en.wikipedia.org:80

Now (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 | sh

Then tinycors

$ npm install -g tinycors

Readme

Keywords

none

Package Sidebar

Install

npm i tinycors

Weekly Downloads

0

Version

0.0.1

License

none

Last publish

Collaborators

  • cburgmer