DFS_Shuo_Chen e2eb47a926 V1.16.9 4 月之前
..
.npmignore e2eb47a926 V1.16.9 4 月之前
History.md e2eb47a926 V1.16.9 4 月之前
Makefile e2eb47a926 V1.16.9 4 月之前
Readme.md e2eb47a926 V1.16.9 4 月之前
component.json e2eb47a926 V1.16.9 4 月之前
index.js e2eb47a926 V1.16.9 4 月之前
package.json e2eb47a926 V1.16.9 4 月之前
test.js e2eb47a926 V1.16.9 4 月之前

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