Readme.md (354B)
1 2 # has-cors 3 4 Detects support for Cross-Origin Resource Sharing 5 6 ## Installation 7 8 Install with [component(1)](http://component.io): 9 10 $ component install component/has-cors 11 12 ## API 13 14 Exports `true` if the user-agent supports CORS, or `false` otherwise. 15 16 ``` js 17 var hasCORS = require('has-cors'); 18 console.log(hasCORS); 19 // true 20 ``` 21 22 ## License 23 24 MIT