baldowl/rack_csrf — pull request #3 by GoalSmashers (2012-01-25 21:03:29+00:00)
Title: :skip_if configuration option for dynamic request filtering

This series of commits adds 'skip_if' option which can be used to decide if request should be blocked or not by evaluating a lambda, e.g.

use Rack::Csrf, :skip_if => lambda { |request|
request.env.key?('HTTP_X_VERY_SPECIAL_HEADER')
}

Cucumber tests are provided as well as updated documentation.