BiFace_Server_Config_API/node_modules/has-cors
2020-05-22 14:53:57 +07:00
..
.npmignore init 2020-05-22 14:53:57 +07:00
component.json init 2020-05-22 14:53:57 +07:00
History.md init 2020-05-22 14:53:57 +07:00
index.js init 2020-05-22 14:53:57 +07:00
Makefile init 2020-05-22 14:53:57 +07:00
package.json init 2020-05-22 14:53:57 +07:00
Readme.md init 2020-05-22 14:53:57 +07:00
test.js init 2020-05-22 14:53:57 +07: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