diff --git a/src/routes/mailserver.js b/src/routes/mailserver.js index a70993e9f..d2e126ce4 100644 --- a/src/routes/mailserver.js +++ b/src/routes/mailserver.js @@ -41,8 +41,7 @@ async function proxy(req, res, next) { parsedUrl.query['access_token'] = addonDetails.token; req.url = url.format({ pathname: pathname, query: parsedUrl.query }); - const proxyOptions = url.parse(`https://${addonDetails.ip}:3000`); - proxyOptions.rejectUnauthorized = false; + const proxyOptions = url.parse(`http://${addonDetails.ip}:3000`); const mailserverProxy = middleware.proxy(proxyOptions); req.clearTimeout(); // TODO: add timeout to mail server proxy logic instead of this @@ -73,4 +72,4 @@ async function setLocation(req, res, next) { if (error) return next(BoxError.toHttpError(error)); next(new HttpSuccess(202, { taskId })); -} \ No newline at end of file +}