aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/owncast/files/owncast-0.0.12-1758-remove-websocket-origin-check.patch')
-rw-r--r--media-video/owncast/files/owncast-0.0.12-1758-remove-websocket-origin-check.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/media-video/owncast/files/owncast-0.0.12-1758-remove-websocket-origin-check.patch b/media-video/owncast/files/owncast-0.0.12-1758-remove-websocket-origin-check.patch
new file mode 100644
index 000000000..3ba0e914c
--- /dev/null
+++ b/media-video/owncast/files/owncast-0.0.12-1758-remove-websocket-origin-check.patch
@@ -0,0 +1,22 @@
+diff --git a/core/chat/chatclient.go b/core/chat/chatclient.go
+index fdcd77e3..4408bd48 100644
+--- a/core/chat/chatclient.go
++++ b/core/chat/chatclient.go
+@@ -3,6 +3,7 @@ package chat
+ import (
+ "bytes"
+ "encoding/json"
++ "net/http"
+ "sync"
+ "time"
+
+@@ -60,6 +61,9 @@ const (
+ var upgrader = websocket.Upgrader{
+ ReadBufferSize: 1024,
+ WriteBufferSize: 1024,
++ CheckOrigin: func(r *http.Request) bool {
++ return true
++ },
+ }
+
+ var (