has-cors

1.1.0 • Public • Published

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

/has-cors/

    Package Sidebar

    Install

    npm i has-cors

    Weekly Downloads

    1,699,205

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • defunctzombie
    • tootallnate