use html/template for golang snippet generation
This commit is contained in:
committed by
Dan Abramov
parent
2dcfa489f0
commit
cf8970832a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user