gorilla/csrf

CSRF middlware is not usable with go gin

rew1nter opened this issue · 1 comments

Describe the bug

I was trying to implement CSRF middleware with go gin but it fails

Versions

Go version: go1.17.1 windows/amd64

Steps to Reproduce

try to register a middlware in go gin and run the code

Code Snippets
Screenshot_1013

gin uses a different function type for middleware, you need to use an adapter. See this comment for a solution: #78 (comment)