diff --git a/Taskfile.yml b/Taskfile.yml index 17f6e39ae..9789e61c8 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -34,6 +34,7 @@ tasks: - conf/**/* - public/**/* - templates/**/* + - custom/**/* method: timestamp generate-schemadoc: diff --git a/internal/context/context.go b/internal/context/context.go index da967b111..ad30d55f7 100644 --- a/internal/context/context.go +++ b/internal/context/context.go @@ -289,7 +289,7 @@ func Contexter() macaron.Handler { // 🚨 SECURITY: Prevent MIME type sniffing in some browsers, // see https://github.com/gogs/gogs/issues/5397 for details. c.Header().Set("X-Content-Type-Options", "nosniff") - c.Header().Set("X-Frame-Options", "DENY") + c.Header().Set("X-Frame-Options", "deny") ctx.Map(c) }