Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 393 Bytes

helmet.md

File metadata and controls

22 lines (17 loc) · 393 Bytes

Harding security using Helmet

  • Add package using go get github.com/bimalabs/middlewares

  • Add Helmet middleware to dics/container.go

{
    Name:  "bima:middleware:helmet",
    Scope: bima.Application,
    Build: func() (middlewares.Middleware, error) {
        return helmet.New(), nil
    },
},
  • Add to configs/middlewares.yaml
middlewares:
    - helmet