mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-24 17:22:34 +01:00
improve (http): Mozilla observatory tips
This commit is contained in:
parent
7f34aaea2c
commit
93ede2068e
1 changed files with 3 additions and 0 deletions
|
|
@ -42,6 +42,9 @@ func IndexHeaders(fn func(App, http.ResponseWriter, *http.Request)) func(ctx App
|
|||
header.Set("Content-Type", "text/html")
|
||||
header.Set("Cache-Control", "no-cache")
|
||||
header.Set("Referrer-Policy", "same-origin")
|
||||
header.Set("X-Content-Type-Options", "nosniff")
|
||||
header.Set("X-XSS-Protection", "1; mode=block")
|
||||
header.Set("X-Frame-Options", "DENY")
|
||||
header.Set("X-Powered-By", fmt.Sprintf("Filestash/%s <https://filestash.app>", APP_VERSION + "." + BUILD_NUMBER))
|
||||
fn(ctx, res, req)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue