Add your domains, for example
my API is running on localhost:8000 my client is running on localhost:3000 so my env setting looks like below
SANCTUM_STATEFUL_DOMAINS=localhost:8000,localhost:3000
also, add your session domain
SESSION_DOMAIN=localhost
More Related Contents:
- Laravel 5.1, Return response to user, then excute some code [closed]
- Displaying HTML with Blade shows the HTML code
- Laravel csrf token mismatch for ajax POST Request
- Post request in Laravel – Error – 419 Sorry, your session/ 419 your page has expired
- How to pass data to all views in Laravel 5?
- Laravel: Error [PDOException]: Could not Find Driver in PostgreSQL
- Laravel Check If Related Model Exists
- Laravel migration: unique key is too long, even if specified
- Laravel: PDOException: could not find driver
- Laravel Eloquent select all rows with max created_at
- Composer error: “PHP extension fileinfo is missing from your system”
- Laravel: How can I change the default Auth Password field name?
- Laravel pagination pretty URL
- Laravel OrderBy relationship count
- How to add some textfield in form register (laravel generator infyom)?
- Laravel 5 Class ‘form’ not found
- What is the difference between {{ }} and {!! !!} in laravel blade files?
- How to set a default attribute value for a Laravel / Eloquent model?
- How to fix the “Base table or view not found: 1146” error when running ‘php artisan migrate’ command?
- Order By before Group By using Eloquent (Laravel)
- Laravel Socialite: InvalidStateException
- Laravel – Using (:any?) wildcard for ALL routes?
- Difference between Eloquent\Model::get() and all()
- Laravel Eloquent get results grouped by days
- required_if Laravel 5 validation
- Where to put the php artisan migrate command
- Login only if user is active using Laravel
- Laravel Change Connection Dynamically
- Laravel 5 Clear Views Cache
- Laravel Eloquent update just if changes have been made