From ae5a159d31baa59c5638850734dc10ea2305e226 Mon Sep 17 00:00:00 2001 From: Giovanni-Josserand Date: Tue, 3 Feb 2026 17:14:32 +0100 Subject: [PATCH] test --- config/cors.php | 2 +- config/sanctum.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/cors.php b/config/cors.php index 3dc4c0d..94f07be 100644 --- a/config/cors.php +++ b/config/cors.php @@ -19,7 +19,7 @@ return [ 'allowed_methods' => ['*'], - 'allowed_origins' => ['http://localhost:5173'], + 'allowed_origins' => ['*'], 'allowed_origins_patterns' => [], diff --git a/config/sanctum.php b/config/sanctum.php index 5dcbaf3..63ecc5e 100644 --- a/config/sanctum.php +++ b/config/sanctum.php @@ -16,12 +16,12 @@ return [ */ 'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf( - '%s,%s', + '%s%s', 'localhost,localhost:5173,127.0.0.1,127.0.0.1:8000,::1', Sanctum::currentApplicationUrlWithPort(), + // Sanctum::currentRequestHost(), ))), - /* |-------------------------------------------------------------------------- | Sanctum Guards