From 5a59f8e3f44b8f1557efc49b7df79c437e542e13 Mon Sep 17 00:00:00 2001 From: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> Date: Fri, 22 Jul 2022 00:03:52 -0700 Subject: [PATCH] iFrame Header when embedding (#2189) Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com> --- restapi/configure_console.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/restapi/configure_console.go b/restapi/configure_console.go index 530e5c906..dfa2cf89c 100644 --- a/restapi/configure_console.go +++ b/restapi/configure_console.go @@ -378,6 +378,8 @@ func handleSPA(w http.ResponseWriter, r *http.Request) { cookie := NewSessionCookieForConsole(*sessionID) http.SetCookie(w, &cookie) } + // Allow us to be iframed + w.Header().Del("X-Frame-Options") } indexPageBytes, err := io.ReadAll(indexPage)