Live: rely on app url for origin check (#35983) (#36089)

(cherry picked from commit 5bbf45592e)

Co-authored-by: Alexander Emelin <frvzmb@gmail.com>
This commit is contained in:
Grot (@grafanabot)
2021-06-23 20:30:40 +03:00
committed by GitHub
co-authored by Alexander Emelin
parent c447ff2581
commit 24c98204e3
3 changed files with 93 additions and 0 deletions
+1
View File
@@ -83,6 +83,7 @@ type testState struct {
func newTestLive(t *testing.T) *live.GrafanaLive {
gLive := live.NewGrafanaLive()
gLive.RouteRegister = routing.NewRouteRegister()
gLive.Cfg = &setting.Cfg{AppURL: "http://localhost:3000/"}
err := gLive.Init()
require.NoError(t, err)
return gLive