Skip to content

Commit

Permalink
Adding cors middleware (#982)
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Poignant <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
thomaspoignant and kodiakhq[bot] authored Aug 8, 2023
1 parent 0869f98 commit 1fc00e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/relayproxy/api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ func (s *Server) init() {
prom.Use(s.echoInstance)
s.echoInstance.Use(metrics.AddCustomMetricsMiddleware)
s.echoInstance.Use(custommiddleware.ZapLogger(s.zapLog, s.config))
s.echoInstance.Use(middleware.CORSWithConfig(middleware.DefaultCORSConfig))
s.echoInstance.Use(middleware.Recover())
s.echoInstance.Use(middleware.TimeoutWithConfig(
middleware.TimeoutConfig{
Expand Down

0 comments on commit 1fc00e9

Please sign in to comment.