Skip to content

Commit

Permalink
πŸ› missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Aug 25, 2022
1 parent ac381b0 commit 2f731ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cors/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func New() gin.HandlerFunc {
cors.New(cors.Config{
return cors.New(cors.Config{
AllowOrigins: []string{setting.Core.WebURL},
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD", "OPTIONS"},
AllowHeaders: []string{"Origin", "Content-Length", "Content-Type", "Authorization"},
Expand Down

0 comments on commit 2f731ae

Please sign in to comment.