Skip to content

Commit

Permalink
fix: add Authorization to CORS Allowed Headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kastnerorz committed Apr 1, 2020
1 parent 38303bf commit ab8df5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/cors_middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func CorsMiddleware() gin.HandlerFunc {
return cors.New(cors.Config{
//AllowOrigins: []string{"http://localhost:3000", "http://192.168.50.196:3000"},
AllowMethods: []string{"PUT", "PATCH", "POST", "GET", "OPTIONS"},
AllowHeaders: []string{"Origin", "Content-Type"},
AllowHeaders: []string{"Origin", "Content-Type", "Authorization"},
ExposeHeaders: []string{"Content-Length"},
AllowCredentials: true,
AllowAllOrigins: true,
Expand Down

0 comments on commit ab8df5f

Please sign in to comment.