mirror of
https://github.com/gogs/gogs.git
synced 2026-03-01 01:30:57 +01:00
chore: watch "custom" directory in dev and use lowercase for header value (#6927)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user