NAME

Amon2::Plugin::Web::CSRFDefender - Anti CSRF filter

SYNOPSIS

package MyApp::Web;
use Amon2::Web;

__PACKAGE__->load_plugin('Web::CSRFDefender');

DESCRIPTION

This plugin denies CSRF request.

METHODS

$c->get_csrf_defender_token()

Get a CSRF defender token. This method is useful to add token for AJAX request.

$c->validate_csrf()

You can validate CSRF token manually.

AUTHOR

Tokuhiro Matsuno

SEE ALSO

Amon2