How to Install libplack-middleware-csrfblock-perl in Ubuntu 18.04

Install libplack-middleware-csrfblock-perl by entering the following commands in the terminal:

sudo apt update
sudo apt install libplack-middleware-csrfblock-perl


Plack middleware to block CSRF (cross-site request forgery)

Plack::Middleware::CSRFBlock helps blocking Cross-Site Request Forgeries, and can be used without any modifications to your application, in most cases. . When the application response Content-type header is "text/html" or "application/xhtml+xml", this middleware inserts a hidden input tag that contains a token string into all POST-forms found in the response body. . For every POST requests, this middleware ensures that the input parameters contain the correct token parameter. If not found, the middleware throws an HTTP error 403 (Forbidden) and the forged request does not even reach your application.


Version: 0.10-2

Section: universe/perl