Trust forwarded proto header from proxy
This commit is contained in:
parent
03cf5eab3e
commit
fac2b1bb68
@ -47,6 +47,7 @@ var tableCache = LRU({
|
|||||||
|
|
||||||
app.use(express.bodyParser());
|
app.use(express.bodyParser());
|
||||||
app.enable('jsonp callback');
|
app.enable('jsonp callback');
|
||||||
|
app.set("trust proxy", true);
|
||||||
|
|
||||||
// basic routing
|
// basic routing
|
||||||
app.options('*', function(req,res) { setCrossDomain(res); res.end(); });
|
app.options('*', function(req,res) { setCrossDomain(res); res.end(); });
|
||||||
|
Loading…
Reference in New Issue
Block a user