Categorygithub.com/vanng822/gin-csrf
repositorypackage
1.2.0
Repository: https://github.com/vanng822/gin-csrf.git
Documentation: pkg.go.dev

# README

gin-csrf

Cookie-to-header csrf for gin with max usage feature. Using this package in conjunction with session. Cookie is only the transport.

Usage

router := gin.Default()
options := csrf.DefaultOptions()
options.MaxUsage = 10
options.MaxAge = 15 * 60
router.Use(csrf.Csrf(options))