From fac2b1bb68fac18cde6922880960b1510ab9088b Mon Sep 17 00:00:00 2001 From: Luis Bosque Date: Thu, 30 May 2013 11:56:43 +0200 Subject: [PATCH] Trust forwarded proto header from proxy --- app/controllers/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/app.js b/app/controllers/app.js index 311b3c56..8f59d7fb 100755 --- a/app/controllers/app.js +++ b/app/controllers/app.js @@ -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(); });