Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Enable CORS on /status

Gabe Kangascd53e108f3ba
diff --git a/main.go b/main.go
index 400e9768d5..9bf16b56f0 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(),