8000 Tags · goji/ctx-csrf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: goji/ctx-csrf

Tags

v2.1

Toggle v2.1's commit message
v2.1 has some minor (non-breaking changes). Enjoy!

- [bugfix] Correctly pass errors back into context.Context
- [refactor] Removed some unecessary code
- [docs] Updated docs around goji.Handler

v2.0

Toggle v2.0's commit message
v2.0 release!

**BREAKING**

* Now supports Goji v2 (https://goji.io)
* `csrf.Protect` now returns `func(goji.Handler) goji.Handler` instead of `web.Handler`s
* `csrf.ErrorHandler` now accepts a `goji.Handler` instead of a `web.Handler`
* `context.Context` is used throughout instead of `web.C.Env` (package users need to pass the parent `context.Context` to retrieve the token)

The original v1 package still exists at https://github.com/goji/csrf (the original import path) for users still on Goji v1.
0