CSRF Middleware

CRSF middleware is provided by gorilla/csrf.

import (
    "clevergo.tech/clevergo"
    "github.com/gorilla/csrf"
)
m := csrf.Protect(
    []byte("32-byte-long-auth-key"),
    csrf.Secure(false), // developing locally
    // other options
)
app.Use(clevergo.WrapHH(m))
comments powered by Disqus