11 lines
216 B
Go
11 lines
216 B
Go
package middleware
|
|
|
|
import (
|
|
"git.urbach.dev/go/web"
|
|
)
|
|
|
|
func HSTS(ctx web.Context) error {
|
|
ctx.Response().SetHeader("Strict-Transport-Security", "max-age=63072000; includeSubDomains; preload")
|
|
return ctx.Next()
|
|
}
|