lib/cors.js
function corsPreflight (req, res, next) {
  if (req.method === "OPTIONS") {
    util.debug("OPTIONS %s is a CORS preflight request. Sending HTTP 200 response.", req.path);
    res.send();
  }
  else {
    next();
  }
}
function corsPreflight (req, res, next) {
  if (req.method === "OPTIONS") {
    util.debug("OPTIONS %s is a CORS preflight request. Sending HTTP 200 response.", req.path);
    res.send();
  }
  else {
    next();
  }
}
function corsPreflight ( req , res , next ) { if ( req . method === "OPTIONS" ) { util . debug ( "OPTIONS %s is a CORS preflight request. Sending HTTP 200 response." , req . path ) ; res . send ( ) ; } else { next ( ) ; } }
Handles CORS preflight requests.
Handles CORS preflight requests .