DEV Community

Discussion on: Laravel Api authentication (Sanctum) with NuxtJs(Part-2)

Collapse
 
iamazizmohmdi profile image
Aziz Mohammadi

Request failed with status code 419:
I got this error for login and register.
How to solve this?
I think it is because of csrf
I don't know how to do this.
for every post request I face with this error.

Thread Thread
 
tanzimibthesam profile image
Tanzim Ibthesam

Read the above comment the solution is provided there Thanks

Thread Thread
 
sergiodanilojr profile image
Sérgio Danilo Jr

You need to check the file config/sanctum.php, and see the index 'domains'... There you need to write the yours.