Skip to content

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

Fix incorrect controller method. Remove wildcard cors from /api/chat

Gabe Kangasda445a3a7f59
diff --git a/controllers/chat.go b/controllers/chat.go
index 0f0263be97..7056f5cb58 100644
--- a/controllers/chat.go
+++ b/controllers/chat.go
@@ -12,12 +12,12 @@ import (
// ExternalGetChatMessages gets all of the chat messages.
func ExternalGetChatMessages(integration user.ExternalAPIUser, w http.ResponseWriter, r *http.Request) {
- GetChatEmbed(w, r)
+ middleware.EnableCors(&w)
+ GetChatMessages(w, r)
}
// GetChatMessages gets all of the chat messages.
func GetChatMessages(w http.ResponseWriter, r *http.Request) {
- middleware.EnableCors(&w)
w.Header().Set("Content-Type", "application/json")
switch r.Method {