Plack-Middleware-CSRFBlock-0.10/ 0000755 0001750 0001750 00000000000 12360533470 014414 5 ustar mmp mmp Plack-Middleware-CSRFBlock-0.10/README.pod 0000644 0001750 0001750 00000012037 12360533470 016060 0 ustar mmp mmp =pod =encoding UTF-8 =head1 NAME Plack::Middleware::CSRFBlock - Block CSRF Attacks with minimal changes to your app =head1 VERSION version 0.10 =head1 SYNOPSIS use Plack::Builder; my $app = sub { ... } builder { enable 'Session'; enable 'CSRFBlock'; $app; } =head1 DESCRIPTION This middleware blocks CSRF. You can use this middleware without any modifications to your application, in most cases. Here is the strategy: =over 4 =item output filter When the application response content-type is "text/html" or "application/xhtml+xml", this inserts a hidden input tag that contains a token string into C
This becomes: