I am using Laravel Sanctum for making authentication. I don't have any SPA application and I want to have Laravel Sanctum for having default authentication. I have followed the documentation but I've got 419 error code.
Asked
Active
Viewed 182 times
0
-
1I guess because I launch my project on my local computer and it is on 127.0.0.1:8000. maybe I should run it with homestead. no one has any comments? – ali Falahati Jul 22 '20 at 12:36
1 Answers
1
If you try to logging to system with Cookie Base application you should add CSRF to your application. And you do not have to use Laravel/Sanctum package if you will not separate your application parts with wildcards. Just use sessions instead of it.

Mahodroid
- 43
- 7