名称 最后更新
..
.npmignore 正在载入提交数据...
History.md 正在载入提交数据...
Makefile 正在载入提交数据...
Readme.md 正在载入提交数据...
component.json 正在载入提交数据...
index.js 正在载入提交数据...
package.json 正在载入提交数据...
test.js 正在载入提交数据...

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