Skip to content

Commit 90fe130

Browse files
author
Ives van Hoorne
committed
Use https for local connection on production
1 parent a970811 commit 90fe130

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app/pages/CLI/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,10 @@ class CLI extends React.PureComponent {
7474
new Promise((resolve, reject) => {
7575
try {
7676
this.setState({ loading: true });
77-
const sock = new SockJS(`http://localhost:${this.port}/login`);
77+
78+
const sock = new SockJS(
79+
`${location.protocol}//localhost:${this.port}/login`,
80+
);
7881
let signedIn = false;
7982

8083
sock.onopen = () => {

0 commit comments

Comments
 (0)