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 4d73cc5
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"

Check failure on line 383 in pkg/api/server.go

View workflow job for this annotation

GitHub Actions / Lint

syntax error: unexpected newline in composite literal; possibly missing comma or } (typecheck)

Check failure on line 383 in pkg/api/server.go

View workflow job for this annotation

GitHub Actions / Lint

missing ',' before newline in composite literal (typecheck)

Check failure on line 383 in pkg/api/server.go

View workflow job for this annotation

GitHub Actions / Lint

syntax error: unexpected newline in composite literal; possibly missing comma or }) (typecheck)

Check failure on line 383 in pkg/api/server.go

View workflow job for this annotation

GitHub Actions / Lint

syntax error: unexpected newline in composite literal; possibly missing comma or }) (typecheck)

Check failure on line 383 in pkg/api/server.go

View workflow job for this annotation

GitHub Actions / Build

syntax error: unexpected newline in composite literal; possibly missing comma or }

Check failure on line 383 in pkg/api/server.go

View workflow job for this annotation

GitHub Actions / Build

syntax error: unexpected newline in composite literal; possibly missing comma or }
}
w.Header().Set("Access-Control-Allow-Headers", strings.Join(headers, ","))
methods := []string{"GET", "HEAD", "POST", "PUT", "PATCH", "DELETE"}
Expand Down

0 comments on commit 4d73cc5

Please sign in to comment.