Feature toggles: Remove dashboardEmbed toggle (#86587)

This commit is contained in:
Alex Khomenko
2024-04-19 12:48:08 +02:00
committed by GitHub
parent c5ca90747d
commit 44e1bce55a
8 changed files with 2 additions and 27 deletions

View File

@ -66,14 +66,6 @@ func AddDefaultResponseHeaders(cfg *setting.Cfg) web.Handler {
}
}
func AddAllowEmbeddingHeader() web.Handler {
return func(c *web.Context) {
c.Resp.Before(func(w web.ResponseWriter) {
w.Header().Set("X-Allow-Embedding", "allow")
})
}
}
// addSecurityHeaders adds HTTP(S) response headers that enable various security protections in the client's browser.
func addSecurityHeaders(w web.ResponseWriter, cfg *setting.Cfg) {
if cfg.StrictTransportSecurity {