vanng822 / gin-csrf

Cookie-to-header csrf for gin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Cookie-to-header csrf for gin

License:MIT License


Languages

Language:Go 100.0%