Ignore migrations, pass credentials
This commit is contained in:
parent
56f15c15a1
commit
be88e4e893
2 changed files with 6 additions and 3 deletions
|
@ -19,13 +19,15 @@ class AuthServiceProvider extends ServiceProvider
|
|||
Server::class => ServerPolicy::class,
|
||||
];
|
||||
|
||||
/**
|
||||
* Register any application authentication / authorization services.
|
||||
*/
|
||||
public function boot()
|
||||
{
|
||||
Sanctum::usePersonalAccessTokenModel(ApiKey::class);
|
||||
|
||||
$this->registerPolicies();
|
||||
}
|
||||
|
||||
public function register()
|
||||
{
|
||||
Sanctum::ignoreMigrations();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ import axios, { AxiosInstance } from 'axios';
|
|||
import { store } from '@/state';
|
||||
|
||||
const http: AxiosInstance = axios.create({
|
||||
withCredentials: true,
|
||||
timeout: 20000,
|
||||
headers: {
|
||||
'X-Requested-With': 'XMLHttpRequest',
|
||||
|
|
Loading…
Reference in a new issue