8000 GitHub - dominicbarnes/corslite: an ajax library for everyone and domains · GitHub
[go: up one dir, main page]

Skip to content
dominicbarnesPublic
forked from mapbox/corslite

About

an ajax library for everyone and domains

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Latest commit

 

History

38 Commits

Folders and files

Repository files navigation

a floating can of corslite

corslite

xhr('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

About

an ajax library for everyone and domains

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages

0