From 1cb618d043bab724be1d410a7b8ea6c2ff065e91 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Sat, 2 May 2026 21:46:30 +0300 Subject: [PATCH] Init middleware pipeline in case we need to add/reorder sth in plugins --- public_html/index.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public_html/index.php b/public_html/index.php index d87dc59..fae56a6 100644 --- a/public_html/index.php +++ b/public_html/index.php @@ -120,6 +120,7 @@ if (!isset($page)) { // Middleware pipeline for security, sanitization & CSRF require_once APP_PATH . 'core/MiddlewarePipeline.php'; $pipeline = new \App\Core\MiddlewarePipeline(); +App::set('middleware.pipeline', $pipeline); $pipeline->add(function() { // Apply security headers require_once APP_PATH . 'includes/security_headers_middleware.php';