Vinícius Ernani de Carvalho 6c4544a079 Create the backend 5 years ago
..
.npmignore 6c4544a079 Create the backend 5 years ago
History.md 6c4544a079 Create the backend 5 years ago
Makefile 6c4544a079 Create the backend 5 years ago
Readme.md 6c4544a079 Create the backend 5 years ago
component.json 6c4544a079 Create the backend 5 years ago
index.js 6c4544a079 Create the backend 5 years ago
package.json 6c4544a079 Create the backend 5 years ago
test.js 6c4544a079 Create the backend 5 years ago

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