❄️ The winter sale is here. 25% off for a limited time. Join us →

Vue.js
Vue 3 SPA with Laravel Sanctum
3
201

Salman

Started this discussion 2 weeks ago

Hi,

Has anyone been in similar situation?

I am following Alex's course for vue SPA with Laravel Sanctum but I keep getting 419 errors right from the start.

Has anything changed with the latest versions of Laravel and Vue? which makes his code not working for me.

Also, can I get the source code of this tutorial? "Laravel Sanctum Authentication with the Vue Composition API".

Thanks.

Happydays

Replied 2 weeks ago

Sounds like csrf issue. Make sure your APP_URL is correct

Salman

Replied 2 weeks ago

The app URL is same on which Laravel is running APP_URL=http://localhost:8000

Happydays

Replied 2 weeks ago

Do you have a csrf meta tag in your layout?