proxy: fix error page (#3020)

* fix error page

* proxy: fix error page

* share dashboard code

* fix test
This commit is contained in:
Caleb Doxsey 2022-02-09 09:14:24 -07:00 committed by GitHub
parent 8f6fddebd1
commit 0898dd4f34
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 17 deletions

View file

@ -18,7 +18,7 @@ import (
// registerDashboardHandlers returns the proxy service's ServeMux
func (p *Proxy) registerDashboardHandlers(r *mux.Router) *mux.Router {
h := r.PathPrefix(dashboardPath).Subrouter()
h := httputil.DashboardSubrouter(r)
h.Use(middleware.SetHeaders(httputil.HeadersContentSecurityPolicy))
// special pomerium endpoints for users to view their session