From 458bb3b0e3589025c6ef6567c4b3f86c6cdfbb6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=A4ggmark?= Date: Mon, 20 May 2019 15:24:49 +0200 Subject: [PATCH] Fix: Changes WebSocket protocol to wss:// for https (#17173) --- public/app/features/explore/state/epics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/app/features/explore/state/epics.ts b/public/app/features/explore/state/epics.ts index 95ce32f11cf..a31474f81cc 100644 --- a/public/app/features/explore/state/epics.ts +++ b/public/app/features/explore/state/epics.ts @@ -16,7 +16,7 @@ import { SeriesData } from '@grafana/ui/src/types/data'; import { EpicDependencies } from 'app/store/configureStore'; const convertToWebSocketUrl = (url: string) => { - const protocol = window.location.protocol === 'https' ? 'wss://' : 'ws://'; + const protocol = window.location.protocol === 'https:' ? 'wss://' : 'ws://'; let backend = `${protocol}${window.location.host}${config.appSubUrl}`; if (backend.endsWith('/')) { backend = backend.slice(0, backend.length - 1);