server: add metrics for CORS handlers.
This commit is contained in:
parent
60f47c4228
commit
d6ad67a6de
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ func newServer(ctx context.Context, c Config, rotationStrategy rotationStrategy)
|
|||
corsOption := handlers.AllowedOrigins(c.AllowedOrigins)
|
||||
handler = handlers.CORS(corsOption)(handler)
|
||||
}
|
||||
r.Handle(path.Join(issuerURL.Path, p), handler)
|
||||
r.Handle(path.Join(issuerURL.Path, p), instrumentHandlerCounter(p, handler))
|
||||
}
|
||||
r.NotFoundHandler = http.HandlerFunc(http.NotFound)
|
||||
|
||||
|
|
Reference in a new issue