0

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.

1
  • 1
    I 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? Commented Jul 22, 2020 at 12:36

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.