Skip to content

Commit

Permalink
fix: add cors middleware after panice recovery middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Jul 24, 2024
1 parent ac33a27 commit f5ca5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starship/registry/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func NewAppServer(config *Config) (*AppServer, error) {
}
httpServer := &http.Server{
Addr: fmt.Sprintf("%s:%s", config.Host, config.HTTPPort),
Handler: app.panicRecovery(app.loggingMiddleware(mux)),
Handler: app.panicRecovery(app.corsMiddleware(app.loggingMiddleware(mux))),
}
app.httpServer = httpServer

Expand Down

0 comments on commit f5ca5e5

Please sign in to comment.