chore: watch "custom" directory in dev and use lowercase for header value (#6927)

pull/6928/head
Joe Chen 2022-05-03 17:54:14 +08:00 committed by GitHub
parent cb35b73048
commit f45dbf3e76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -34,6 +34,7 @@ tasks:
- conf/**/*
- public/**/*
- templates/**/*
- custom/**/*
method: timestamp
generate-schemadoc:

View File

@ -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)
}