Skip to content
This repository was archived by the owner on Jun 27, 2024. It is now read-only.

Commit afb446b

Browse files
committed
Update sanctum.php
1 parent f6f016f commit afb446b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/config/sanctum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(
1919
'%s%s',
2020
'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1',
21-
Sanctum::currentApplicationUrlWithPort()
21+
env('APP_URL') ? ',' . parse_url(env('APP_URL'), PHP_URL_HOST) : ''
2222
))),
2323

2424
/*
@@ -61,7 +61,7 @@
6161

6262
'middleware' => [
6363
'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class,
64-
'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class,
64+
'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class,
6565
],
6666

6767
];

0 commit comments

Comments
 (0)