Skip to content

HTTP Security middleware for GoLang library Gin, inspired by Helmet for Express

License

Notifications You must be signed in to change notification settings

danielkov/gin-helmet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

HTTP Security middleware for GoLang library Gin, inspired by Helmet for Express

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages