Debugging Laravel Sanctum 401 response

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ม.ค. 2025

ความคิดเห็น • 9

  • @transcrobesproject3625
    @transcrobesproject3625 11 หลายเดือนก่อน

    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!

  • @KwesiBoatengOwusu
    @KwesiBoatengOwusu 6 หลายเดือนก่อน

    Thank you soo soo much

  • @bigsgm
    @bigsgm 7 หลายเดือนก่อน +1

    thank you so much!!!

  • @adamshaibu3911
    @adamshaibu3911 ปีที่แล้ว

    @cdruc i have tried all possible configs, "/user" returns 401. The logs look ok. I dont know what to do next

  • @MrFixIt-le7rs
    @MrFixIt-le7rs ปีที่แล้ว

    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

  • @francismori7
    @francismori7 ปีที่แล้ว

    In sanctum.php, it looks like the FRONTEND_URL is supposed to be included in the stateful domains array..?

    • @francismori7
      @francismori7 ปีที่แล้ว

      Oh, but it uses parse_url and PHP_URL_HOST which excludes the port. This feels like maybe this should be PR'd.

  • @holakonoob
    @holakonoob ปีที่แล้ว

    Hey Cdruc, I know you're working on a Sanctum authentication course. If you could create a TH-cam 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