diff options
Diffstat (limited to 'workhorse/internal/staticpages/servefile.go')
-rw-r--r-- | workhorse/internal/staticpages/servefile.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/workhorse/internal/staticpages/servefile.go b/workhorse/internal/staticpages/servefile.go index be314f181b7..18fcdadcbed 100644 --- a/workhorse/internal/staticpages/servefile.go +++ b/workhorse/internal/staticpages/servefile.go @@ -67,6 +67,9 @@ func (s *Static) ServeExisting(prefix urlprefix.Prefix, cache CacheMode, notFoun notFoundHandler.ServeHTTP(w, r) return } + + w.Header().Set("X-Content-Type-Options", "nosniff") + defer content.Close() switch cache { |