You have no idea how much of a legend you are! I was like "here we go again, another dead end that doesn't fix my issue..." but you were spot on! I'm doing funky multi-sites being accessed from a single domain in multiple kubernetes containers and laravel was not liking the domain. Nice!
Hey Cdruc, I know you're working on a Sanctum authentication course. If you could create a RUclips playlist explaining the basics of Sanctum and how to use it for authenticating a SPA on different domains with a Laravel API, that would be really helpful
Hi, do you have a paid for nuxt and laravel API of extensive project like this one you are show casing? I'm wiling to buy. I need to learn this best practices
have you tried logging out the domain and sanctum stateful domains list? what do you get in your log file. i see absolutely no reason other than a mismatch there.
@@cdruc i've tried doing so but no file gets generated, almost like that function never gets called, also i have a weird 3rd cookie with a random name. Also after login, the cookies get updated with a new value 1 or 2 times? why is that?
You have no idea how much of a legend you are! I was like "here we go again, another dead end that doesn't fix my issue..." but you were spot on! I'm doing funky multi-sites being accessed from a single domain in multiple kubernetes containers and laravel was not liking the domain. Nice!
thank you so much!!!
Thank you soo soo much
Hey Cdruc, I know you're working on a Sanctum authentication course. If you could create a RUclips playlist explaining the basics of Sanctum and how to use it for authenticating a SPA on different domains with a Laravel API, that would be really helpful
Hi, do you have a paid for nuxt and laravel API of extensive project like this one you are show casing? I'm wiling to buy. I need to learn this best practices
@cdruc i have tried all possible configs, "/user" returns 401. The logs look ok. I dont know what to do next
In sanctum.php, it looks like the FRONTEND_URL is supposed to be included in the stateful domains array..?
Oh, but it uses parse_url and PHP_URL_HOST which excludes the port. This feels like maybe this should be PR'd.
after all this still cant get my project to view a protected route... its been months , all values seem correct but stilll get 401 unauth
have you tried logging out the domain and sanctum stateful domains list? what do you get in your log file. i see absolutely no reason other than a mismatch there.
@@cdruc i've tried doing so but no file gets generated, almost like that function never gets called, also i have a weird 3rd cookie with a random name. Also after login, the cookies get updated with a new value 1 or 2 times? why is that?