11 lines
216 B
Go
Raw Permalink Normal View History

2025-02-20 20:08:38 +01:00
package middleware
import (
2025-02-25 17:01:59 +01:00
"git.urbach.dev/go/web"
2025-02-20 20:08:38 +01:00
)
func HSTS(ctx web.Context) error {
ctx.Response().SetHeader("Strict-Transport-Security", "max-age=63072000; includeSubDomains; preload")
return ctx.Next()
}