Trust forwarded proto header from proxy

This commit is contained in:
Luis Bosque 2013-05-30 11:56:43 +02:00
parent 03cf5eab3e
commit fac2b1bb68

View File

@ -47,6 +47,7 @@ var tableCache = LRU({
app.use(express.bodyParser());
app.enable('jsonp callback');
app.set("trust proxy", true);
// basic routing
app.options('*', function(req,res) { setCrossDomain(res); res.end(); });