Skip to content

Commit

Permalink
misc: follow up on #5835 (#5837)
Browse files Browse the repository at this point in the history
* Add missing CHANGELOG entry
* Mirror fix to static mode
  • Loading branch information
rfratto authored Nov 22, 2023
1 parent cc7cb37 commit 7da5726
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ internal API changes are not present.
Main (unreleased)
-----------------

### Bugfixes

- Permit `X-Faro-Session-ID` header in CORS requests for the `faro.receiver`
component (flow mode) and the `app_agent_receiver` integration (static mode).
(@cedricziel)

v0.38.0 (2023-11-21)
--------------------

Expand Down
2 changes: 1 addition & 1 deletion pkg/integrations/v2/app_agent_receiver/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func (ar *AppAgentReceiverHandler) HTTPHandler(logger log.Logger) http.Handler {
if len(ar.config.Server.CORSAllowedOrigins) > 0 {
c := cors.New(cors.Options{
AllowedOrigins: ar.config.Server.CORSAllowedOrigins,
AllowedHeaders: []string{apiKeyHeader, "content-type"},
AllowedHeaders: []string{apiKeyHeader, "content-type", "x-faro-session-id"},
})
handler = c.Handler(handler)
}
Expand Down

0 comments on commit 7da5726

Please sign in to comment.