From d0024e317e11e0913aee75a2790a07101c07544b Mon Sep 17 00:00:00 2001 From: Lisa Kim Date: Tue, 31 Dec 2024 14:57:12 -0800 Subject: [PATCH] Remove meta tag --- lib/web/apiserver.go | 2 -- web/packages/teleport/index.html | 1 - .../teleport/src/services/integrations/integrations.ts | 2 +- web/packages/teleport/src/services/joinToken/joinToken.ts | 2 +- .../webUiVersion.ts => version/unsupported.ts} | 7 ------- 5 files changed, 2 insertions(+), 12 deletions(-) rename web/packages/teleport/src/services/{webUiVersion/webUiVersion.ts => version/unsupported.ts} (90%) 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 {