/var/www/myprog.com.ua/server/node/node_modules/has-cors
NameSizeModeActions
.npmignore170644editdlrm
component.json3220644editdlrm
History.md2640644editdlrm
index.js4580644editdlrm
Makefile1660644editdlrm
package.json6110644editdlrm
Readme.md3540644editdlrm
Edit: /var/www/myprog.com.ua/server/node/node_modules/has-cors/index.js (458B)
/** * Module dependencies. */ var global = require('global'); /** * Module exports. * * Logic borrowed from Modernizr: * * - https://github.com/Modernizr/Modernizr/blob/master/feature-detects/cors.js */ try { module.exports = 'XMLHttpRequest' in global && 'withCredentials' in new global.XMLHttpRequest(); } catch (err) { // if XMLHttp support is disabled in IE then it will throw // when trying to create module.exports = false; }