use html/template for golang snippet generation

This commit is contained in:
bryan newbold
2024-04-12 17:50:54 -07:00
committed by Dan Abramov
parent 2dcfa489f0
commit cf8970832a
2 changed files with 6 additions and 20 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ func serve(cctx *cli.Context) error {
e.Use(middleware.SecureWithConfig(middleware.SecureConfig{
ContentTypeNosniff: "nosniff",
// diable XFrameOptions; we're embedding here!
HSTSMaxAge: 31536000, // 365 days
HSTSMaxAge: 31536000, // 365 days
// TODO:
// ContentSecurityPolicy
// XSSProtection