From a895c16a6cf854d47093c2a9825a27a7fd88c7d5 Mon Sep 17 00:00:00 2001 From: Frigyes Bartha Date: Tue, 30 Jun 2020 20:31:58 +0200 Subject: [PATCH] Trying to solve ERR_TLS_CERT_ALTNAME_INVALID error --- carelink.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/carelink.js b/carelink.js index 7fa0367..8d49543 100644 --- a/carelink.js +++ b/carelink.js @@ -32,10 +32,10 @@ function reqOptions(extra) { var defaults = { jar: true, followRedirect: false, - rejectUnauthorized: false, + //rejectUnauthorized: false, changeOrigin: true, headers: { - Host: carelinkServerAddress, + //Host: carelinkServerAddress, Connection: 'keep-alive', Accept: 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:41.0) Gecko/20100101 Firefox/41.0',