Skip to content

Commit

Permalink
allow headers to http grpc-gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
insipx committed Sep 20, 2024
1 parent dd0b6d5 commit 38d37f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,8 @@ func preflightHandler(w http.ResponseWriter, r *http.Request) {
"Sec-CH-UA-Platform",
"Sentry-Trace",
"User-Agent",
"x-libxmtp-version",
"x-app-version",
}
w.Header().Set("Access-Control-Allow-Headers", strings.Join(headers, ","))
methods := []string{"GET", "HEAD", "POST", "PUT", "PATCH", "DELETE"}
Expand Down

0 comments on commit 38d37f5

Please sign in to comment.