has-cors

v1.1.0
Detects support for Cross-Origin Resource Sharing
cors cross origin resource sharing domain

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

npm i has-cors

Metadata

  • MIT
  • Whatever
  • Nathan Rajlich
  • released 11/12/2014

Downloads

Maintainers