feat(security): #314 include all proposed security headers
All checks were successful
Build Docker Image / Build-Docker-Image (push) Successful in 43s
Build and Push Docker Image / Build-And-Push-Docker-Image (push) Successful in 47s

This commit was merged in pull request #315.
This commit is contained in:
2024-12-12 21:37:23 +01:00
parent 60fe2789cc
commit 1ad694ce2b
8 changed files with 48 additions and 85 deletions

View File

@@ -23,6 +23,7 @@ func NewRender(settings *types.Settings) *Render {
}
func (render *Render) Render(r *http.Request, w http.ResponseWriter, comp templ.Component) {
w.Header().Set("Content-Type", "text/html")
err := comp.Render(r.Context(), w)
if err != nil {
log.Error("Failed to render layout: %v", err)