Skip to content

Commit

Permalink
Prevent the devconsole from being loaded in iframes. (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
ftkg committed Jul 6, 2022
1 parent e2e02fc commit 50642ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/console.go
Expand Up @@ -396,6 +396,7 @@ func registerDashboardHandlers(logger *zap.Logger, router *mux.Router) {
}

w.Header().Add("Cache-Control", "no-cache")
w.Header().Set("X-Frame-Options", "deny")
w.Write(indexBytes)
return
}
Expand Down

0 comments on commit 50642ad

Please sign in to comment.