Baldowl

my nest somewhere in GitHub's forest

Rough, simple Rack::Csrf extension for Sinatra

Here is a really simple extension for Sinatra to ease even more the use of Rack::Csrf with this beautiful micro-framework/DSL. It’s totally untested, written on the spot, published as is.

The activation is delayed until apply_csrf_protection to allow passing options to Rack::Csrf.

If you use sinatra-contrib, then you should not use Rack::Csrf.