mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-24 09:34:44 +02:00
Ignore migrations, pass credentials
This commit is contained in:
parent
56f15c15a1
commit
be88e4e893
@ -19,13 +19,15 @@ class AuthServiceProvider extends ServiceProvider
|
|||||||
Server::class => ServerPolicy::class,
|
Server::class => ServerPolicy::class,
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
|
||||||
* Register any application authentication / authorization services.
|
|
||||||
*/
|
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
Sanctum::usePersonalAccessTokenModel(ApiKey::class);
|
Sanctum::usePersonalAccessTokenModel(ApiKey::class);
|
||||||
|
|
||||||
$this->registerPolicies();
|
$this->registerPolicies();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function register()
|
||||||
|
{
|
||||||
|
Sanctum::ignoreMigrations();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@ import axios, { AxiosInstance } from 'axios';
|
|||||||
import { store } from '@/state';
|
import { store } from '@/state';
|
||||||
|
|
||||||
const http: AxiosInstance = axios.create({
|
const http: AxiosInstance = axios.create({
|
||||||
|
withCredentials: true,
|
||||||
timeout: 20000,
|
timeout: 20000,
|
||||||
headers: {
|
headers: {
|
||||||
'X-Requested-With': 'XMLHttpRequest',
|
'X-Requested-With': 'XMLHttpRequest',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user