Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

has-cors

1.1.0 • Public • Published

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

Install

npm i has-cors

DownloadsWeekly Downloads

3,421,492

Version

1.1.0

License

MIT

Last publish

Collaborators

  • avatar
  • avatar