Skip to content

Commit

Permalink
update AllowOriginFunc comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyenought committed Nov 6, 2023
1 parent 2bc83a8 commit 46af876
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ 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
// set, the content of AllowOrigins is ignored.
// AllowOriginFunc is a custom function to validate the origin. It takes the origin
// as argument and returns true if allowed or false otherwise.
// It is recommended to use AllowOriginFunc without setting AllowOrigins.
AllowOriginFunc func(origin string) bool

// AllowMethods is a list of methods the client is allowed to use with
Expand Down

0 comments on commit 46af876

Please sign in to comment.