mirror of
https://github.com/go-gitea/gitea
synced 2025-07-13 14:07:20 +00:00
add bool for performance
This commit is contained in:
@ -236,7 +236,7 @@ func APIContexter() func(http.Handler) http.Handler {
|
||||
|
||||
httpcache.SetCacheControlInHeader(ctx.Resp.Header(), 0, "no-transform")
|
||||
|
||||
if setting.XFrameOptions != "false" {
|
||||
if setting.UseXFrameOptions {
|
||||
ctx.Resp.Header().Set(`X-Frame-Options`, setting.XFrameOptions)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user