work.suroh.tk/node_modules/has-cors
suroh 410082595a init 11ty commit 2019-12-02 13:22:45 +01:00
..
.npmignore init 11ty commit 2019-12-02 13:22:45 +01:00
History.md init 11ty commit 2019-12-02 13:22:45 +01:00
Makefile init 11ty commit 2019-12-02 13:22:45 +01:00
Readme.md init 11ty commit 2019-12-02 13:22:45 +01:00
component.json init 11ty commit 2019-12-02 13:22:45 +01:00
index.js init 11ty commit 2019-12-02 13:22:45 +01:00
package.json init 11ty commit 2019-12-02 13:22:45 +01:00
test.js init 11ty commit 2019-12-02 13:22:45 +01: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