diff --git a/lib/web/apiserver.go b/lib/web/apiserver.go index d308c75c2bdcd..dae12e3c42b0c 100644 --- a/lib/web/apiserver.go +++ b/lib/web/apiserver.go @@ -669,7 +669,6 @@ func NewHandler(cfg Config, opts ...HandlerOption) (*APIHandler, error) { // The web app will show them the login page in this case. session, _ := h.authenticateWebSession(w, r) session.XCSRF = csrfToken - session.Version = teleport.Version httplib.SetNoCacheHeaders(w.Header()) httplib.SetIndexContentSecurityPolicy(w.Header(), cfg.ClusterFeatures, r.URL.Path) @@ -730,7 +729,6 @@ func NewHandler(cfg Config, opts ...HandlerOption) (*APIHandler, error) { type webSession struct { Session string XCSRF string - Version string } func (h *Handler) authenticateWebSession(w http.ResponseWriter, r *http.Request) (webSession, error) { diff --git a/web/packages/teleport/index.html b/web/packages/teleport/index.html index 2090591fd5b2b..34d6ce56782c2 100644 --- a/web/packages/teleport/index.html +++ b/web/packages/teleport/index.html @@ -7,7 +7,6 @@ - ( - '[name=teleport_version]' - ); - return metaTag?.content || ''; -} - export function withUnsupportedLabelFeatureErrorConversion( err: unknown ): never {