NancyFx/Nancy — pull request #989 by grumpydev (2013-02-16 14:40:15+00:00)
Title: Disabled Csrf hook by default

As we haver a mix of people using Nancy for views and services,
and as creating the Csrf cookie is very expensive and validation
of it requires manual work anyway, having it runnign automatically
on every request is wasteful, and is especially harmful with clients
that don't store the cookie (so it gets regenerated every request)

Enabling it is just a single line in the bootstrapp app startup:

Csrf.Enable(pipelines);