Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dbhoot committed Mar 1, 2024
1 parent 6d48563 commit 6eded88
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ type Config struct {
// set, the content of AllowOrigins is ignored.
AllowOriginFunc func(origin string) bool

// same AllowOriginFunc except also receives the full request context
// Same as AllowOriginFunc except also receives the full request context.
// This function should use the context as a read only source and not
// have any side effects on the request, such as aborting or injecting
// values on the request.
AllowOriginWithContextFunc func(c *gin.Context, origin string) bool

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

0 comments on commit 6eded88

Please sign in to comment.