Skip to content

Commit

Permalink
server: set X-Frame-Options
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Mar 16, 2024
1 parent 833de3c commit 4356add
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/tailsql/tailsql.go
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ func (s *Server) serveUI(w http.ResponseWriter, r *http.Request) {
func (s *Server) serveUIInternal(w http.ResponseWriter, r *http.Request, caller, src, query string) error {
http.SetCookie(w, siteAccessCookie)
w.Header().Set("Content-Security-Policy", contentSecurityPolicy)
w.Header().Set("X-Frame-Options", "DENY")

// If a non-empty query is present, require either a site access cookie or a
// no-browsers header.
Expand Down

0 comments on commit 4356add

Please sign in to comment.