Skip to content

Commit

Permalink
feat: update check origin (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
xigongdaEricyang authored Sep 3, 2024
1 parent 7701e54 commit e32e8f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions server/api/studio/internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ type Config struct {
// If a peer sends a message larger than this, websocket will close the connection.
// default: 8MB (8 * 1024 * 1024), 0 means no limit or system limit
ReadLimit int64 `json:",default=8388608"`

// Check Origin in websocket handshake
CheckOrigin bool `json:",default=true"`
} `json:",optional"`

DB struct {
Expand Down

0 comments on commit e32e8f4

Please sign in to comment.