skip to Main Content

Laravel – Cannot authenticate using spa

I have my API that run on this url: https://example.com, and my vue.js app which runs on this: https://app.example.com. So I configured as the following the .env: SESSION_DOMAIN=.example.com SANCTUM_STATEFUL_DOMAINS=https://app.example.com the axios configuration contains the following: import axios from 'axios' const…

VIEW QUESTION

Javascript – How can i make code execution wait with async await?

I have an init function wich i wrote in a ridiculous way just to examine async/await: function init() { console.log(1) accountsStore.getAccounts().then(() => { categoriesStore.getCategories().then(() => { sheetItemStore.getSheetItems().then(() => { accountsStore.getTotal().then(() => { sheetItemStore.getTotals().then(() => { balanceStore.getGrandTotal().then(() => { console.log(8) })…

VIEW QUESTION
Back To Top
Search