diff --git a/public_html/admin/index.php b/public_html/admin/index.php index 7e0de13..d1b7008 100644 --- a/public_html/admin/index.php +++ b/public_html/admin/index.php @@ -5,6 +5,9 @@ require_once __DIR__ . '/../../api/lib/db.php'; session_name('jarvis_admin'); session_start(); +// Prevent Cloudflare Rocket Loader from deferring inline scripts (breaks doLogin, CAT_COLORS, etc.) +header('Cache-Control: no-transform'); + // ── AUTH HELPERS ────────────────────────────────────────────────────────────── function loggedIn(): bool { return !empty($_SESSION['admin_user']); } function j(mixed $d): never { header('Content-Type: application/json'); echo json_encode($d); exit; }