tree: f1eeb6f1bc351d868a6098eadeb0268fe803604c [path history] [tgz]
  1. .npmignore
  2. component.json
  3. History.md
  4. index.js
  5. Makefile
  6. package.json
  7. Readme.md
  8. test.js
third_party/devtools/node_modules/has-cors/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