Ali
Ali

Reputation: 669

Using Laravel sanctum for Laravel default authentication returns 419 error code

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.

Upvotes: 0

Views: 209

Answers (1)

Mahodroid
Mahodroid

Reputation: 43

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.

Upvotes: 1

Related Questions