Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@csainty
Created June 15, 2014 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save csainty/3d50214a33ad1a0f81b8 to your computer and use it in GitHub Desktop.
Save csainty/3d50214a33ad1a0f81b8 to your computer and use it in GitHub Desktop.
Breaks on v0.23
public class MyBootstrapper : DefaultNancyBootstrapper
{
protected override void ApplicationStartup(TinyIoc.TinyIoCContainer container, Bootstrapper.IPipelines pipelines)
{
base.ApplicationStartup(container, pipelines);
Nancy.Security.Csrf.Enable(pipelines);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment