Skip to content
HTTP Security middleware for GoLang library Gin, inspired by Helmet for Express
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
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
README.md added readme and better documentation Nov 8, 2017
helmet.go added readme and better documentation Nov 8, 2017
helmet_test.go

README.md

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

Usage

Add the Default middleware for basic security measures.

s := gin.New()
s.Use(helmet.Default())

You can also add each middleware separately:

s.Use(helmet.NoCache())

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.