mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-10-29 13:31:20 +00:00
parent
54c674c936
commit
87c31c2ffe
6 changed files with 12 additions and 12 deletions
|
|
@ -158,7 +158,7 @@ func Recovery(ctx goctx.Context) func(next http.Handler) http.Handler {
|
|||
store["SignedUserName"] = ""
|
||||
}
|
||||
|
||||
httpcache.AddCacheControlToHeader(w.Header(), 0, "no-transform")
|
||||
httpcache.SetCacheControlInHeader(w.Header(), 0, "no-transform")
|
||||
w.Header().Set(`X-Frame-Options`, setting.CORSConfig.XFrameOptions)
|
||||
|
||||
if !setting.IsProd {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue