diff options
author | Joe Chen <jc@unknwon.io> | 2022-05-03 17:54:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-03 17:54:14 +0800 |
commit | f45dbf3e76ec580689c43f00a399e9a78a145dea (patch) | |
tree | bcf34dd77aa1f7caf3c728b63d5855008f9e1368 | |
parent | cb35b73048b91ca32ee89d5b05a09552db8e5faf (diff) |
chore: watch "custom" directory in dev and use lowercase for header value (#6927)
-rw-r--r-- | Taskfile.yml | 1 | ||||
-rw-r--r-- | internal/context/context.go | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/Taskfile.yml b/Taskfile.yml index 17f6e39a..9789e61c 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 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) } |