feat: clean sanctum
This commit is contained in:
+2
-2
@@ -15,7 +15,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'paths' => ['api/*', 'sanctum/csrf-cookie'],
|
||||
'paths' => ['api/*'],
|
||||
|
||||
'allowed_methods' => ['*'],
|
||||
|
||||
@@ -29,6 +29,6 @@ return [
|
||||
|
||||
'max_age' => 0,
|
||||
|
||||
'supports_credentials' => true,
|
||||
'supports_credentials' => false,
|
||||
|
||||
];
|
||||
|
||||
+3
-7
@@ -1,7 +1,5 @@
|
||||
<?php
|
||||
|
||||
use Laravel\Sanctum\Sanctum;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
@@ -15,11 +13,9 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
|
||||
'%s%s%s',
|
||||
'localhost,localhost:3000,localhost:8081,localhost:8082,127.0.0.1,127.0.0.1:8000,127.0.0.1:8081,127.0.0.1:8082,::1',
|
||||
Sanctum::currentApplicationUrlWithPort(),
|
||||
Sanctum::currentRequestHost(),
|
||||
'stateful' => array_values(array_filter(array_map(
|
||||
'trim',
|
||||
explode(',', env('SANCTUM_STATEFUL_DOMAINS', ''))
|
||||
))),
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user