From 43c77e10d7e0235721eff96c6482d83c61f85cb3 Mon Sep 17 00:00:00 2001 From: Shah Alam <43747088+ShahAlamShaikat@users.noreply.github.com> Date: Wed, 23 Oct 2024 23:01:39 +0100 Subject: [PATCH] Update sanctum.php fix(sanctum): add 127.0.0.1:3000 for proper API auth during local development with 127.0.0.1:3000 --- stubs/api/config/sanctum.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stubs/api/config/sanctum.php b/stubs/api/config/sanctum.php index 7bead37ec..b03f249cc 100644 --- a/stubs/api/config/sanctum.php +++ b/stubs/api/config/sanctum.php @@ -17,7 +17,7 @@ 'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( '%s%s%s', - 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1', + 'localhost,localhost:3000,127.0.0.1,127.0.0.1:3000,127.0.0.1:8000,::1', Sanctum::currentApplicationUrlWithPort(), env('FRONTEND_URL') ? ','.parse_url(env('FRONTEND_URL'), PHP_URL_HOST) : '' ))),