class

CSRF

Inherits Kemal::Handler / HTTP::Handler / Reference / Object

This middleware adds CSRF protection to your application.

Returns 403 "Forbidden" unless the current CSRF token is submitted with any non-GET/HEAD request.

Without CSRF protection, your app is vulnerable to replay attacks where an attacker can re-submit a form.

Constructors

Instance methods

call(context)
Source
setup
Source