包详细信息

has-cors

component6.6mMIT1.1.0

Detects support for Cross-Origin Resource Sharing

cors, cross, origin, resource

自述文件

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

更新日志

1.1.0 / 2014-11-12

  • remove "global" module dependency (#2, @achingbrain)

1.0.2 / 2013-08-27

  • explicitly use global instead of being implicit
  • pin "component/global" to v2.0.1

1.0.1 / 2013-08-23

  • package: add "component" section

1.0.0 / 2013-08-22

  • Initial release