mapbox/corslite

an ajax library for everyone and domains

JavaScript

88

51 commits

updated Jun 29, 2026

See the code

README

a floating can of corslite

corslite

Build Status

corslite('http://b.tiles.mapbox.com/v3/tmcw.dem.json', function(err, resp) {
    // resp is the XMLHttpRequest object
}, true); // cross origin?

an AJAX library focused on simplicity and supporting IE8-10 with cross domain requests.

We're making a deal with the devil and using XDomainRequest in hopes that it is less a hack than JSONP. This comes with caveats:

  • No headers are permitted on requests
  • Only 'GET'
  • No access error diagnostics (status code, response body) on IE

mapbox/corslite

an ajax library for everyone and domains

JavaScript

88

51 commits

updated Jun 29, 2026

See the code

README

a floating can of corslite

corslite

Build Status

corslite('http://b.tiles.mapbox.com/v3/tmcw.dem.json', function(err, resp) {
    // resp is the XMLHttpRequest object
}, true); // cross origin?

an AJAX library focused on simplicity and supporting IE8-10 with cross domain requests.

We're making a deal with the devil and using XDomainRequest in hopes that it is less a hack than JSONP. This comes with caveats:

  • No headers are permitted on requests
  • Only 'GET'
  • No access error diagnostics (status code, response body) on IE

Project health

Overall

4.3/10

Maintained

0/10

Code review

0/10
OpenSSF Scorecard

Latest release

0.0.7 · May 12, 2015

Releases this year

0
Deprecated

Significant stargazers

Zeke Sikelianos

3,080 followers · starred Oct 2013