Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A dead simple CORS proxy

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
Octocat-spinner-32 tinycors.js
README.md

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

You might also like

Example

$ tinycors --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
Something went wrong with that request. Please try again.