From f45dbf3e76ec580689c43f00a399e9a78a145dea Mon Sep 17 00:00:00 2001 From: Joe Chen Date: Tue, 3 May 2022 17:54:14 +0800 Subject: chore: watch "custom" directory in dev and use lowercase for header value (#6927) --- internal/context/context.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/context') 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) } -- cgit v1.2.3