mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 21:52:43 +08:00
Live: rely on app url for origin check (#35983)
This commit is contained in:
@ -84,6 +84,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
|
||||
|
Reference in New Issue
Block a user