Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/has-cors
Detects support for Cross-Origin Resource Sharing
https://github.com/component/has-cors
Last synced: 12 days ago
JSON representation
Detects support for Cross-Origin Resource Sharing
- Host: GitHub
- URL: https://github.com/component/has-cors
- Owner: component
- Created: 2013-08-22T21:11:42.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2018-10-08T13:52:51.000Z (about 6 years ago)
- Last Synced: 2024-12-10T05:56:49.008Z (18 days ago)
- Language: JavaScript
- Size: 183 KB
- Stars: 20
- Watchers: 7
- Forks: 9
- Open Issues: 5
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
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