From cd53e108f3ba810653fcaea63c0f7617af38d637 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sat, 13 Jun 2020 22:39:02 -0700 Subject: [PATCH] Enable CORS on /status --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 400e9768d..9bf16b56f 100644 --- a/main.go +++ b/main.go @@ -72,6 +72,8 @@ func enableCors(w *http.ResponseWriter) { } func getStatus(w http.ResponseWriter, r *http.Request) { + enableCors(&w) + status := Status{ Online: stats.IsStreamConnected(), ViewerCount: stats.GetViewerCount(),