@fomaxwebcreator I'm facing that rn! Do you found solution why xsrf and session headers are set without get request to sanctum/csrf-cookie?
Laravel or Sanctum set XSRF cookie itself, without requesting sanctum/csrf-cookie
I have some strange behaviour with sanctum SPA (VUE/axios) authentication. Within documentation - i need to send request to sanctum/csrf-cookie before POST login request. But Sanctum or Laravel set up it himself, besides, he do this every POST PUT DELETE requests and set up new cookies. And authentication passes successfully too, without sanctum/csrf-cookie. Why is this so, is it normal or not?
PS: I found the same topic - https://laracasts.com/discuss/channels/laravel/sanctum-cookie-for-spa-in-nuxtjs-sanctum-forces-cookies-to-refresh-on-each-request-but-why?page=1&replyId=873609 - but author told "all of that is now solved" without explanation... Perhaps the wording of his question will complement the understanding of my question
Please or to participate in this conversation.