pixelnode/node_modules/has-cors
clerie 49686db41d Node.js initialisiert 2018-04-03 11:42:35 +02:00
..
.npmignore Node.js initialisiert 2018-04-03 11:42:35 +02:00
History.md Node.js initialisiert 2018-04-03 11:42:35 +02:00
Makefile Node.js initialisiert 2018-04-03 11:42:35 +02:00
Readme.md Node.js initialisiert 2018-04-03 11:42:35 +02:00
component.json Node.js initialisiert 2018-04-03 11:42:35 +02:00
index.js Node.js initialisiert 2018-04-03 11:42:35 +02:00
package.json Node.js initialisiert 2018-04-03 11:42:35 +02:00
test.js Node.js initialisiert 2018-04-03 11:42:35 +02:00

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