Search code examples
clojurecsrf

Authenticity Tokens in Clojure to combat CSRF?


What Clojure library (or libraries) exist to fight cross-site request forgeries?


Solution

  • If you use Ring, check out ring-anti-forgery: Ring middleware that "prevents CSRF attacks by providing a randomly-generated anti-forgery token."