From 70bc37608dd91dcfde59fc398cb784e52cd8d8b7 Mon Sep 17 00:00:00 2001 From: Harutyun Amirjanyan Date: Sun, 1 May 2016 02:42:47 +0400 Subject: [PATCH] Allow running dev-server behind https proxy --- client/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/index.js b/client/index.js index dbbb1ee07e..4a831f059d 100644 --- a/client/index.js +++ b/client/index.js @@ -60,7 +60,7 @@ var onSocketMsg = { var newConnection = function() { sock = new SockJS(url.format({ - protocol: urlParts.protocol, + protocol: (window.location.protocol == "https:") ? "https:" : urlParts.protocol, auth: urlParts.auth, hostname: (urlParts.hostname === '0.0.0.0') ? window.location.hostname : urlParts.hostname, port: (urlParts.port == '0') ? window.location.port : urlParts.port,