fix for mixed content warnings

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-08-08 09:34:58 -04:00 committed by Andy Tudhope
parent c5eefadc02
commit 9277a0f1be
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ async function setupAPI() {
let express = require("express");
let app = express();
/* accept headers like x-forwarded-proto from proxies */
app.set('trust proxy', 'loopback')
setupPreRoutedAppMiddlewares(app);
let APIRouter = require('./routes/api-router');