Merge pull request #1429 from tsuna/master
server: add metrics for CORS handlers.
This commit is contained in:
commit
cd3c6983da
@ -257,7 +257,7 @@ func newServer(ctx context.Context, c Config, rotationStrategy rotationStrategy)
|
|||||||
corsOption := handlers.AllowedOrigins(c.AllowedOrigins)
|
corsOption := handlers.AllowedOrigins(c.AllowedOrigins)
|
||||||
handler = handlers.CORS(corsOption)(handler)
|
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)
|
r.NotFoundHandler = http.HandlerFunc(http.NotFound)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user