A debugging story about tracking down 419 CSRF errors in a Laravel Livewire application. The root cause was four spaces before the <?php tag in routes/web.php, which sent output before headers and prevented session cookies from being set. The issue only appeared with Herd (nginx + PHP-FPM) because output buffering was disabled,
15 Comments
Sort: