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