+ Are you sure you want to delete {{$domain}}? +
+ +diff --git a/todo.md b/todo.md index 16c8e91..7f5c6d0 100644 --- a/todo.md +++ b/todo.md @@ -12,3 +12,5 @@ * Maybe add a DNS/Domains page and require users to add domains their before they can use them for tunnels. This creates a natural place to explain what is wrong when domain stuff breaks. +* Responses to unauthorized requests are leaking information about the current + tunnels through the genereated CSS. diff --git a/ui_handler.go b/ui_handler.go index 2be6140..4f2fa2e 100644 --- a/ui_handler.go +++ b/ui_handler.go @@ -272,7 +272,7 @@ func (h *WebUiHandler) handleWebUiRequest(w http.ResponseWriter, r *http.Request return } - http.Redirect(w, r, "/#/tunnels", 307) + //http.Redirect(w, r, "/#/tunnels", 307) case "/tokens": h.handleTokens(w, r, user, tokenData) diff --git a/webui/index.tmpl b/webui/index.tmpl index cce21f3..460ec18 100644 --- a/webui/index.tmpl +++ b/webui/index.tmpl @@ -21,15 +21,35 @@
+ Are you sure you want to delete {{$domain}}? +
+ +- Are you sure you want to delete {{$domain}}? -
- -