aboutsummaryrefslogtreecommitdiffhomepage
path: root/node_modules/has-cors/Readme.md
blob: 895464684bf7b861d23640c88d225117da88efbf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# 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