From 2c0888088db4931afaa4770661be77194b013430 Mon Sep 17 00:00:00 2001 From: ghassan Date: Sat, 16 May 2026 14:27:13 +0300 Subject: [PATCH] Fix Up Next SPA: add playerData to auth except list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit VideoController constructor applied auth middleware to all methods not in the except list. playerData was missing, causing guest requests to get 401 → SPA fallback to window.location.href → page refresh. Co-Authored-By: Claude Sonnet 4.6 --- app/Http/Controllers/VideoController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/VideoController.php b/app/Http/Controllers/VideoController.php index 211707c..3342361 100644 --- a/app/Http/Controllers/VideoController.php +++ b/app/Http/Controllers/VideoController.php @@ -25,7 +25,7 @@ class VideoController extends Controller { public function __construct() { - $this->middleware('auth')->except(['index', 'show', 'search', 'stream', 'hls', 'trending', 'shorts', 'download', 'downloadMp3', 'recordShare', 'ogImage', 'accessShare', 'showByToken', 'recommendations', 'slideshowProgress']); + $this->middleware('auth')->except(['index', 'show', 'search', 'stream', 'hls', 'trending', 'shorts', 'download', 'downloadMp3', 'recordShare', 'ogImage', 'accessShare', 'showByToken', 'recommendations', 'slideshowProgress', 'playerData']); } public function index()