title: Node/Express 'Access-Control-Allow-Origin' CORS not working
body: <p>I'm using Angular to call a GET request to Express/Node:</p>
  
  <pre><code>  $http.get('/auth/'+type).
    success(function(user){
  
    }).
    error(function(err){
      if (err){
        $scope.alerts.addAlert('danger',err);
      }
    });
  </code></pre>
  
  <p>The Express/Node configuration which ( I think includes CORS correctly):</p>
  
  <pre><code>var express = require('express'),
  app = module.exports.app = express(); 
  
  //express compression
  var oneDay = 86400000;
  var compression = require('compression');
  app.use(compression());
  
  // CORS support.
  app.all('*', function(req, res, next){
    if (!req.get('Origin')) return next();
    res.set('Access-Control-Allow-Origin', '*');
    res.set('Access-Control-Allow-Methods', 'GET');
    res.set('Access-Control-Allow-Headers', 'X-Requested-With, Content-Type');
    if ('OPTIONS' == req.method) return res.send(200);
    next();
  });
  
  app.use(express.static(__dirname + '/app/dist', { maxAge: oneDay }));
  </code></pre>
  
  <p>When I fire the $http.get, I get an Access Control error:</p>
  
  <pre><code>XMLHttpRequest cannot load http://www.meetup.com/authenticate/?oauth_token=f515918e2415f9a321ljsf34. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:2997' is therefore not allowed access. 
  </code></pre>