Skip to content
Snippets Groups Projects
Commit 8af8979f authored by ale's avatar ale
Browse files

Fix X-Frame-Options header

parent d1e6a380
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ func WithDynamicHeaders(h http.Handler, csp string) http.Handler {
hdr.Set("Pragma", "no-cache")
hdr.Set("Cache-Control", "no-store")
hdr.Set("Expires", "-1")
hdr.Set("X-Frame-Options", "NONE")
hdr.Set("X-Frame-Options", "deny")
hdr.Set("X-XSS-Protection", "1; mode=block")
hdr.Set("X-Content-Type-Options", "nosniff")
if csp != "" && hdr.Get("Content-Security-Policy") == "" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment