lucaconte 7cc26e831d presentations 6 years ago
..
.npmignore 7cc26e831d presentations 6 years ago
History.md 7cc26e831d presentations 6 years ago
Makefile 7cc26e831d presentations 6 years ago
Readme.md 7cc26e831d presentations 6 years ago
component.json 7cc26e831d presentations 6 years ago
index.js 7cc26e831d presentations 6 years ago
package.json 7cc26e831d presentations 6 years ago
test.js 7cc26e831d presentations 6 years ago

Readme.md

has-cors

Detects support for Cross-Origin Resource Sharing

Installation

Install with component(1):

$ component install component/has-cors

API

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

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

License

MIT