Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
the node module for doing cross-domain CRUD with the browser
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
browser.js
example.html
example.js
index.js
package.json
proxy.html

README.md

crossmania

talk crossdomain with your browser. it's available through npm:

npm install crossmania

usage is simple:

var mania = require('crossmania'); // call .string() afterwards to talk raw strings

mania.get('/', function(request, respond) {
    respond({hello:'world'}); // yes we talk json
});
mania.post('/', function(request, data, respond) {
    respond(data); // we echo
});
mania.listen(80);

mania works by relying on cors based ajax if available (chrome, safari, firefox).
for IE8+ and Opera it uses an iframe proxy frame and the postMessage api. for IE7- and all others it falls back to an jsonp wrapper.

in the browser use the browser.js and a common.js compiler

Something went wrong with that request. Please try again.