Skip to content

Commit

Permalink
docs: update documentation typos (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
samkeet authored Oct 24, 2023
1 parent 765e44e commit ee4df80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ type Config struct {
// Default value is []
AllowOrigins []string

// AllowOriginFunc is a custom function to validate the origin. It take the origin
// as argument and returns true if allowed or false otherwise. If this option is
// AllowOriginFunc is a custom function to validate the origin. It takes the origin
// as an argument and returns true if allowed or false otherwise. If this option is
// set, the content of AllowOrigins is ignored.
AllowOriginFunc func(origin string) bool

Expand Down

0 comments on commit ee4df80

Please sign in to comment.