DFS_Shuo_Chen e2eb47a926 V1.16.9 11 сар өмнө
..
.npmignore e2eb47a926 V1.16.9 11 сар өмнө
History.md e2eb47a926 V1.16.9 11 сар өмнө
Makefile e2eb47a926 V1.16.9 11 сар өмнө
Readme.md e2eb47a926 V1.16.9 11 сар өмнө
component.json e2eb47a926 V1.16.9 11 сар өмнө
index.js e2eb47a926 V1.16.9 11 сар өмнө
package.json e2eb47a926 V1.16.9 11 сар өмнө
test.js e2eb47a926 V1.16.9 11 сар өмнө

Readme.md

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