MATSUNO★Tokuhiro > Amon2-3.99_01 > Amon2::Plugin::Web::CSRFDefender

Download:
Amon2-3.99_01.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: Amon2-6.02

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

syntax highlighting: