mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-03 00:40:25 +02:00
proxy: fix error page (#3020)
* fix error page * proxy: fix error page * share dashboard code * fix test
This commit is contained in:
parent
8f6fddebd1
commit
0898dd4f34
5 changed files with 25 additions and 17 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue