justinas / nosurf

CSRF protection middleware for Go.

Home Page:http://godoc.org/github.com/justinas/nosurf

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Httprouter compatibility?

chespinoza opened this issue · comments

Are there plans to have https://github.com/julienschmidt/httprouter compatibility?
Thanks in advance.

nosurf wraps any http.Handler. Unless there's some specific issue I don't know, it should work perfectly fine with HttpRouter.

Building upon the example from its README:

log.Fatal(http.ListenAndServe(":8080", nosurf.New(router)))

Yeah, confirmed that nosurf works with httprouter.