Skip to content

Commit

Permalink
Merge pull request #27 from easonlin404/readme
Browse files Browse the repository at this point in the history
Remove unnecessary comments.
  • Loading branch information
javierprovecho committed Jul 8, 2017
2 parents f894742 + e641d4a commit 567de19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type Config struct {

// AllowedOrigins is a list of origins a cross-domain request can be executed from.
// If the special "*" value is present in the list, all origins will be allowed.
// Default value is ["*"]
// Default value is []
AllowOrigins []string

// AllowOriginFunc is a custom function to validate the origin. It take the origin
Expand All @@ -28,8 +28,6 @@ type Config struct {

// AllowedHeaders is list of non simple headers the client is allowed to use with
// cross-domain requests.
// If the special "*" value is present in the list, all headers will be allowed.
// Default value is [] but "Origin" is always appended to the list.
AllowHeaders []string

// AllowCredentials indicates whether the request can include user credentials like
Expand Down

0 comments on commit 567de19

Please sign in to comment.