papercats/node_modules/has-cors
2017-02-24 00:49:41 -06:00
..
.npmignore Add socket.io 2017-02-24 00:49:41 -06:00
component.json Add socket.io 2017-02-24 00:49:41 -06:00
History.md Add socket.io 2017-02-24 00:49:41 -06:00
index.js Add socket.io 2017-02-24 00:49:41 -06:00
Makefile Add socket.io 2017-02-24 00:49:41 -06:00
package.json Add socket.io 2017-02-24 00:49:41 -06:00
Readme.md Add socket.io 2017-02-24 00:49:41 -06:00
test.js Add socket.io 2017-02-24 00:49:41 -06:00

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