From 8933e07281e58bc4c052048994402ab18244f5b7 Mon Sep 17 00:00:00 2001 From: Yury Pikhtarev Date: Tue, 24 Jun 2025 02:12:02 +0400 Subject: [PATCH] fix: add missing comma separator in stateful domains configuration (#1) The sprintf call in config/sanctum.php was missing a comma separator between the base domain list and application URL, causing domains to merge incorrectly. This resulted in CORS failures and stateful authentication issues. --- config/sanctum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/sanctum.php b/config/sanctum.php index 44527d6..8285fbf 100644 --- a/config/sanctum.php +++ b/config/sanctum.php @@ -16,7 +16,7 @@ */ 'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( - '%s%s', + '%s,%s', 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', Sanctum::currentApplicationUrlWithPort(), // Sanctum::currentRequestHost(),