diff --git a/.env.example b/.env.example index 9ac6851..1782db8 100644 --- a/.env.example +++ b/.env.example @@ -54,8 +54,6 @@ SESSION_LIFETIME=120 SESSION_ENCRYPT=false SESSION_PATH=/ SESSION_DOMAIN=null -SESSION_SAME_SITE=lax -SESSION_PARTITIONED_COOKIE=false SANCTUM_STATEFUL_DOMAINS=localhost,127.0.0.1,*.shopit.com.ar SANCTUM_EXPIRATION=720 SESSION_SECURE_COOKIE=false diff --git a/app/Domains/Cart/Services/CartService.php b/app/Domains/Cart/Services/CartService.php index 402a9cd..014a111 100644 --- a/app/Domains/Cart/Services/CartService.php +++ b/app/Domains/Cart/Services/CartService.php @@ -306,7 +306,7 @@ class CartService true, false, config('session.same_site'), - )->withPartitioned((bool) config('session.partitioned')); + ); } protected function makeEmptyCart(Tenant $tenant): Cart diff --git a/tests/Feature/Cart/CartControllerTest.php b/tests/Feature/Cart/CartControllerTest.php index 4e52994..d195cf7 100644 --- a/tests/Feature/Cart/CartControllerTest.php +++ b/tests/Feature/Cart/CartControllerTest.php @@ -35,7 +35,6 @@ class CartControllerTest extends TestCase config()->set('session.domain', '.qa.shopit.com.ar'); config()->set('session.secure', true); config()->set('session.same_site', 'none'); - config()->set('session.partitioned', true); $tenant = $this->createTenant('acme'); $item = $this->createDirectItem($tenant, 10, '49.90'); @@ -64,7 +63,6 @@ class CartControllerTest extends TestCase $this->assertTrue($guestTokenCookie->isSecure()); $this->assertTrue($guestTokenCookie->isHttpOnly()); $this->assertSame('none', $guestTokenCookie->getSameSite()); - $this->assertTrue($guestTokenCookie->isPartitioned()); $this->assertDatabaseHas('carrito_items', [ 'catalog_item_id' => $item->id,