vanng822/gin-csrf

Cookie-to-header csrf for gin

★ 5Forks 2GoGitHub ↗Compare

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))

Contributors

vanng822dependabot[bot]

Issues