arnaucode 112745d6fa | 7 years ago | |
---|---|---|
.. | ||
.npmignore | 7 years ago | |
History.md | 7 years ago | |
Makefile | 7 years ago | |
Readme.md | 7 years ago | |
component.json | 7 years ago | |
index.js | 7 years ago | |
package.json | 7 years ago | |
test.js | 7 years ago |
Detects support for Cross-Origin Resource Sharing
Install with component(1):
$ component install component/has-cors
Exports true
if the user-agent supports CORS, or false
otherwise.
var hasCORS = require('has-cors');
console.log(hasCORS);
// true
MIT