Enable CORS on /status

This commit is contained in:
Gabe Kangas 2020-06-13 22:39:02 -07:00
parent 38127bed77
commit cd53e108f3

View File

@ -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(),