has-cors

Detects support for Cross-Origin Resource Sharing

MIT 2 个版本
安装
npm install has-cors
yarn add has-cors
pnpm add has-cors
bun add has-cors
README

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

版本列表
1.1.0 2014-11-12
1.0.3 2014-01-26