diff options
author | clsr <clsr@clsr.net> | 2016-07-01 01:08:12 +0200 |
---|---|---|
committer | clsr <clsr@clsr.net> | 2016-07-01 01:08:12 +0200 |
commit | 551fe100edccdf3809e2e475542292f552dc6e72 (patch) | |
tree | 113b90de5948bceb2ae27789759d54e2bcb672cc | |
parent | 0e78c2307da4177fa49031e717c3688d21428695 (diff) | |
download | gomf-551fe100edccdf3809e2e475542292f552dc6e72.tar.gz gomf-551fe100edccdf3809e2e475542292f552dc6e72.zip |
Add X-Content-Type-Options: nosniff header
-rw-r--r-- | api.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -36,6 +36,7 @@ func handleFile(w http.ResponseWriter, r *http.Request) { if csp != "" { w.Header().Set("Content-Security-Policy", csp) } + w.Header().Set("X-Content-Type-Options", "nosniff") w.Header().Set("Last-Modified", modtime.UTC().Format(http.TimeFormat)) w.Header().Set("Expires", modtime.UTC().Add(time.Hour*24*30).Format(http.TimeFormat)) w.Header().Set("Cache-Control", "max-age=2592000") |