Heratio Framework API Reference

CsrfMiddleware
in package

CSRF Middleware for standalone (Heratio) mode.

Validates CSRF tokens on POST/PUT/DELETE/PATCH requests. Respects enforcement mode: 'log', 'enforce', or 'off'.

In dual-stack mode (Symfony), CSRF is enforced via AhgController::boot() instead of this middleware.

Table of Contents

Methods

handle()  : Response
Handle an incoming request.

Methods

handle()

Handle an incoming request.

public handle(Request $request, callable $next) : Response
Parameters
$request : Request
$next : callable

The next middleware/handler

Return values
Response

        
On this page

Search results