Skip to content

Commit

Permalink
Drop legacy X-Frame-Options header
Browse files Browse the repository at this point in the history
The modern way is CSP frame-ancestors header which we also set.
  • Loading branch information
JRaspass committed May 30, 2024
1 parent f535e42 commit dd4f26f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion routes/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ func render(w http.ResponseWriter, r *http.Request, name string, data ...any) {
header.Set("Content-Language", "en")
header.Set("Content-Type", "text/html; charset=utf-8")
header.Set("Referrer-Policy", "no-referrer")
header.Set("X-Frame-Options", "DENY")
header.Set("Content-Security-Policy",
"base-uri 'none';"+
"connect-src 'self';"+
Expand Down

0 comments on commit dd4f26f

Please sign in to comment.