# corslite

> xhr for browsers and ie

Latest version **0.0.7** (published 2015-05-12) · BSD license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install corslite
pnpm add corslite
yarn add corslite
bun add corslite
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2015-05-12 |
| First published | 2013-04-05 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 88 |
| Maintainers | tmcw, jfirebaugh, ansis, heyitsgarrett, mapbox, lxbarth, mikemorris, ianshward, mourner, tristen, ingalls, morganherlocker, miccolis, gretacb, aaronlidman, camilleanne, rclark, willwhite, springmeyer, kkaefer, dthompson, yhahn |

## Links

- npm: https://www.npmjs.com/package/corslite
- Repository: https://github.com/mapbox/corslite
- Issues: https://github.com/mapbox/corslite/issues
- npm.io page: https://npm.io/package/corslite

## Recent versions

- 0.0.7 (latest) — 2015-05-12
- 0.0.6 — 2014-06-12
- 0.0.5 — 2013-09-13
- 0.0.4 — 2013-07-26
- 0.0.3 — 2013-04-24
- 0.0.2 — 2013-04-09
- 0.0.1 — 2013-04-05
- 0.0.0 — 2013-04-05

## README

![a floating can of corslite](https://f.cloud.github.com/assets/83384/341733/2fc1dcb8-9d7a-11e2-8ad1-7961248920c3.png)

## corslite

[![Build Status](https://travis-ci.org/mapbox/corslite.svg?branch=master)](https://travis-ci.org/mapbox/corslite)

```js
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](http://bit.ly/XTxZet)
in hopes that it is less a hack than [JSONP](http://en.wikipedia.org/wiki/JSONP).
This comes with caveats:

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

---
_Source: https://npm.io/package/corslite · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
