You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
354 B

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