I can't wait for the course as well, I need to fully understand how to guard login and authenticated routes on my vue app with laravel sanctum cookie based authentication
Thanks for the question! Most videos will have an F.A.Q section where I address questions that might arise after watching the video. Things like: "why this, why not that" "what happens when the csrf cookie expires" "do I always need to make a csrf-cookie request?" and so on.. I've added yours as well: i.postimg.cc/MG1f56tB/Screenshot-2023-12-16-at-14-01-19.png 😃
spa and api domains are different, you messed up with the session_domain config value, you don’t have cors support_credentials set to true, you dont set credentials: include or withCredentials: true (axios) when making the request. any of these might cause it
I can't wait for the full course
I can't wait for the course as well, I need to fully understand how to guard login and authenticated routes on my vue app with laravel sanctum cookie based authentication
I'm really waiting for the course 👏
i hope U make a video about laravel rest api with token (stateless) and using them in vuejs3
May I ask why you are using axios and not the Vue 3 useFetch?
No other reason than personal preference 😄
Thanks for the question!
Most videos will have an F.A.Q section where I address questions that might arise after watching the video.
Things like:
"why this, why not that"
"what happens when the csrf cookie expires"
"do I always need to make a csrf-cookie request?"
and so on..
I've added yours as well: i.postimg.cc/MG1f56tB/Screenshot-2023-12-16-at-14-01-19.png 😃
why my cookie browser empty after get /sanctum/csrf?
spa and api domains are different, you messed up with the session_domain config value, you don’t have cors support_credentials set to true, you dont set credentials: include or withCredentials: true (axios) when making the request.
any of these might cause it