Skip to content

Commit

Permalink
Add CORS header for Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Apr 11, 2024
1 parent 46ee43a commit b9ed84a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ Ref: https://keepachangelog.com/en/1.0.0/

# Changelog

## v0.14.5

Add CORS header for Sentry

## v0.14.4

Nanosecond block process duration metric
Expand Down
1 change: 1 addition & 0 deletions middleware/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func init() {
func (m *GoMiddleware) CORS(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
c.Response().Header().Set("Access-Control-Allow-Origin", "*")
c.Response().Header().Set("Access-Control-Allow-Headers", "sentry-trace, baggage")
return next(c)
}
}
Expand Down

0 comments on commit b9ed84a

Please sign in to comment.