From 38d37f57b9992862d5795547fceded83d48b3fa5 Mon Sep 17 00:00:00 2001 From: Andrew Plaza Date: Fri, 20 Sep 2024 16:30:21 -0400 Subject: [PATCH] allow headers to http grpc-gateway --- pkg/api/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/api/server.go b/pkg/api/server.go index 52b0cbb1..be575332 100644 --- a/pkg/api/server.go +++ b/pkg/api/server.go @@ -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"}