Skip to content

Commit

Permalink
fix: add Authorization header
Browse files Browse the repository at this point in the history
  • Loading branch information
ken109 committed Nov 22, 2021
1 parent e76d7b2 commit 72e7d3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/middleware/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func Cors(option *CorsOption) gin.HandlerFunc {
return false
}
},
AllowHeaders: []string{"Origin", "Content-Length", "Content-Type", "X-Request-Id"},
AllowHeaders: []string{"Origin", "Authorization", "Content-Length", "Content-Type", "X-Request-Id"},
AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD"},
AllowCredentials: true,
MaxAge: maxAge,
Expand Down

0 comments on commit 72e7d3c

Please sign in to comment.