iFrame Header when embedding (#2189)

Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
This commit is contained in:
Daniel Valdivia
2022-07-22 00:03:52 -07:00
committed by GitHub
parent 48340d0010
commit 5a59f8e3f4

View File

@@ -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)