aboutsummaryrefslogtreecommitdiff
path: root/internal/context
diff options
context:
space:
mode:
authorJoe Chen <jc@unknwon.io>2022-05-03 17:54:14 +0800
committerGitHub <noreply@github.com>2022-05-03 17:54:14 +0800
commitf45dbf3e76ec580689c43f00a399e9a78a145dea (patch)
treebcf34dd77aa1f7caf3c728b63d5855008f9e1368 /internal/context
parentcb35b73048b91ca32ee89d5b05a09552db8e5faf (diff)
chore: watch "custom" directory in dev and use lowercase for header value (#6927)
Diffstat (limited to 'internal/context')
-rw-r--r--internal/context/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/context/context.go b/internal/context/context.go
index da967b11..ad30d55f 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)
}