Skip to content

Commit 70bc376

Browse files
committed
Allow running dev-server behind https proxy
1 parent 2c9a461 commit 70bc376

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
@@ -60,7 +60,7 @@ var onSocketMsg = {
6060

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

0 commit comments

Comments
 (0)