Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.
Permalink
Browse files Browse the repository at this point in the history
Merge pull request #35 from 11k/fix-origin-check
Fix WebSocket upgrade CSRF vulnerability
  • Loading branch information
ILiedAboutCake committed Jul 30, 2020
2 parents 5182d05 + d621408 commit bebd256
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion main.go
Expand Up @@ -37,7 +37,6 @@ var (
var upgrader = websocket.Upgrader{
ReadBufferSize: 1024,
WriteBufferSize: 1024,
CheckOrigin: func(r *http.Request) bool { return true },
}

const (
Expand Down

0 comments on commit bebd256

Please sign in to comment.