# has-cors

> Detects support for Cross-Origin Resource Sharing

Latest version **1.1.0** (published 2014-11-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install has-cors
pnpm add has-cors
yarn add has-cors
bun add has-cors
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2014-11-12 |
| First published | 2014-01-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 20 |
| Author | Nathan Rajlich |
| Maintainers | shtylman |
| Keywords | cors, cross, origin, resource, sharing, domain |

## Links

- npm: https://www.npmjs.com/package/has-cors
- Repository: https://github.com/component/has-cors
- Issues: https://github.com/component/has-cors/issues
- npm.io page: https://npm.io/package/has-cors

## Alternatives

- [jsforce](https://npm.io/package/jsforce.md) — 851.2K weekly downloads
- [react-native-qrcode-svg](https://npm.io/package/react-native-qrcode-svg.md) — 693.5K weekly downloads
- [@salesforce/plugin-data](https://npm.io/package/@salesforce/plugin-data.md) — 394.9K weekly downloads
- [@backstage/plugin-search-common](https://npm.io/package/@backstage/plugin-search-common.md) — 308.5K weekly downloads
- [@chain-registry/types](https://npm.io/package/@chain-registry/types.md) — 38.4K weekly downloads

## Recent versions

- 1.1.0 (latest) — 2014-11-12
- 1.0.3 — 2014-01-26

## README

# has-cors

  Detects support for Cross-Origin Resource Sharing

## Installation

  Install with [component(1)](http://component.io):

    $ component install component/has-cors

## API

Exports `true` if the user-agent supports CORS, or `false` otherwise.

``` js
var hasCORS = require('has-cors');
console.log(hasCORS);
// true
```

## License

  MIT

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