Suppose you have two websites that require authentication:
- localhost:8000 (backend)
- localhost:3000 (frontend)
- Allow origins for
https://localhost:3000/
<?php | |
use PhpCsFixer\Config; | |
use PhpCsFixer\Finder; | |
$rules = [ | |
'array_indentation' => true, | |
'array_syntax' => ['syntax' => 'short'], | |
'binary_operator_spaces' => [ | |
'default' => 'single_space', |
{ | |
"preset": "laravel", | |
"rules": { | |
"array_indentation": true, | |
"array_syntax": { | |
"syntax": "short" | |
}, | |
"binary_operator_spaces": { | |
"default": "single_space" | |
}, |
const subjects = [ | |
{ | |
name: "Quizzes", | |
icon_custom_emoji_id: "5433614043006903194", | |
text: "Quizzes Topic", | |
}, | |
// etc | |
]; | |
const telegramToken = ""; | |
const chatId = ""; |
import { createRouter, createWebHistory } from 'vue-router'; | |
import routes from '~pages'; | |
const router = createRouter({ | |
history: createWebHistory(import.meta.env.BASE_URL), | |
routes: routes, | |
}); | |
router.onError((err) => { |