Skip to content

Commit

Permalink
Allow x-faro-session-id header for faro receiver (grafana#5835)
Browse files Browse the repository at this point in the history
(cherry picked from commit cc7cb37)
  • Loading branch information
cedricziel authored and rfratto committed Nov 30, 2023
1 parent 643e817 commit 7307042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component/faro/receiver/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (h *handler) Update(args ServerArguments) {
if len(args.CORSAllowedOrigins) > 0 {
h.cors = cors.New(cors.Options{
AllowedOrigins: args.CORSAllowedOrigins,
AllowedHeaders: []string{apiKeyHeader, "content-type"},
AllowedHeaders: []string{apiKeyHeader, "content-type", "x-faro-session-id"},
})
} else {
h.cors = nil // Disable cors.
Expand Down

0 comments on commit 7307042

Please sign in to comment.