- Add EnsureFrontendRequestsAreStateful to api middleware stack - Create config/sanctum.php with cts-work.test as stateful domain - Fixes 'Unauthenticated' error on SongDB and other API-backed pages
6 lines
155 B
PHP
6 lines
155 B
PHP
<?php
|
|
|
|
return [
|
|
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', 'localhost,localhost:8000,127.0.0.1,127.0.0.1:8000,::1,cts-work.test')),
|
|
];
|