From 4d73cc5314b52af4d6fcab7ba5d1b5ffe3762ea8 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..64f31ce2 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"}