Skip to content

Commit

Permalink
added ProxyHeaders handler in server
Browse files Browse the repository at this point in the history
  • Loading branch information
borud committed Apr 9, 2023
1 parent b9e6e1f commit 683c697
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/server/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ func (s *Server) startHTTP() error {
mux.PathPrefix("/").Handler(http.FileServer(http.FS(frontendFS)))

s.httpServer = &http.Server{
Handler: handlers.CombinedLoggingHandler(os.Stdout, addCORSHeaders(mux.ServeHTTP)),
Handler: handlers.ProxyHeaders(
handlers.CombinedLoggingHandler(os.Stdout,
addCORSHeaders(mux.ServeHTTP))),
}

go func() {
Expand Down

0 comments on commit 683c697

Please sign in to comment.