Skip to content

Commit 8303caa

Browse files
authored
fix(ui): allow cross origin (#5159)
1 parent 05f8a8e commit 8303caa

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

engine/api/websocket.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ import (
2222
"github.com/ovh/cds/sdk/log"
2323
)
2424

25-
var upgrader = websocket.Upgrader{} // use default options
25+
var upgrader = websocket.Upgrader{
26+
CheckOrigin: func(r *http.Request) bool {
27+
return true
28+
},
29+
}
2630

2731
type websocketClient struct {
2832
UUID string

0 commit comments

Comments
 (0)