diff --git a/client-src/default/utils/createSocketUrl.js b/client-src/default/utils/createSocketUrl.js index b7bf6c944d..d91b16541b 100644 --- a/client-src/default/utils/createSocketUrl.js +++ b/client-src/default/utils/createSocketUrl.js @@ -50,6 +50,7 @@ function createSocketUrl(resourceQuery) { // because the browser doesn't accept non-secure websockets. if ( hostname && + hostname !== '127.0.0.1' && (self.location.protocol === 'https:' || urlParts.hostname === '0.0.0.0') ) { protocol = self.location.protocol;