From 32871ff2ffe467bf1b18f9a82e6fdefb44c42e29 Mon Sep 17 00:00:00 2001 From: Cedric Ziel Date: Wed, 22 Nov 2023 12:16:55 +0100 Subject: [PATCH] Allow x-faro-session-id header for faro receiver --- component/faro/receiver/handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/component/faro/receiver/handler.go b/component/faro/receiver/handler.go index fb8511e0bbde..636f00859e2b 100644 --- a/component/faro/receiver/handler.go +++ b/component/faro/receiver/handler.go @@ -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.