An open API service indexing awesome lists of open source software.

https://github.com/vanng822/gin-csrf

Cookie-to-header csrf for gin
https://github.com/vanng822/gin-csrf

Last synced: 5 months ago
JSON representation

Cookie-to-header csrf for gin

Awesome Lists containing this project

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
```go
router := gin.Default()
options := csrf.DefaultOptions()
options.MaxUsage = 10
options.MaxAge = 15 * 60
router.Use(csrf.Csrf(options))
```