Skip to content

Commit 31f6ac1

Browse files
nightwingSpaceK33z
authored andcommitted
Allow running dev-server behind https proxy
1 parent f28944e commit 31f6ac1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var onSocketMsg = {
5959

6060
var newConnection = function() {
6161
sock = new SockJS(url.format({
62-
protocol: urlParts.protocol,
62+
protocol: (window.location.protocol == "https:") ? "https:" : urlParts.protocol,
6363
auth: urlParts.auth,
6464
hostname: (urlParts.hostname === '0.0.0.0') ? window.location.hostname : urlParts.hostname,
6565
port: (urlParts.port == '0') ? window.location.port : urlParts.port,

0 commit comments

Comments
 (0)