Skip to content
HTTP Security middleware for GoLang library Gin, inspired by Helmet for Express
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Nov 7, 2017
.travis.yml removed unsupported dependencies Nov 8, 2017
LICENSE Initial commit Nov 7, 2017 added readme and better documentation Nov 8, 2017
helmet.go added readme and better documentation Nov 8, 2017

Gin Helmet

Security middlewares for Gin (gin-gonic/gin) inspired by the popular helmet middleware package for Node JS express and koa.

Build Status Coverage Status Go Report Card godocs MIT license


Add the Default middleware for basic security measures.

s := gin.New()

You can also add each middleware separately:


Those not included in the Default() middleware are considered more advanced and require consideration before using.

See the godoc for more info and examples.

You can’t perform that action at this time.