Skip to content

Commit

Permalink
fix: add x-google-id-token header to cors accepted headers
Browse files Browse the repository at this point in the history
  • Loading branch information
nayyara-airlangga committed Aug 27, 2023
1 parent 927243a commit 6b93f02
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/cors.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ func ConfigureCors(c Config) {
allowedMethods = append(allowedMethods, "HEAD", "TRACE")
}

allowedHeaders = []string{"Accept", "Authorization", "X-Forwarded-Authorization", "Content-Type", "X-Lexica-Api-Key"}
allowedHeaders = []string{
"Accept",
"Authorization",
"X-Forwarded-Authorization",
"Content-Type",
"X-Lexica-Api-Key",
"X-Google-Id-Token",
}
}

func CorsMiddleware(h http.Handler) http.Handler {
Expand Down

0 comments on commit 6b93f02

Please sign in to comment.