Skip to content

Commit

Permalink
fix(ui): allow cross origin (#5159)
Browse files Browse the repository at this point in the history
  • Loading branch information
sguiheux authored May 5, 2020
1 parent 05f8a8e commit 8303caa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion engine/api/websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ import (
"github.com/ovh/cds/sdk/log"
)

var upgrader = websocket.Upgrader{} // use default options
var upgrader = websocket.Upgrader{
CheckOrigin: func(r *http.Request) bool {
return true
},
}

type websocketClient struct {
UUID string
Expand Down

0 comments on commit 8303caa

Please sign in to comment.