i am learning vue js
I have few queries regarding the hidden token we used to send through the form blade file.
don't we need to send the csrf token through form for store update delete mothod . If not then doesnt it lead to delete /update/store the data through url
<form action="" method="post">
@csrf
</form>
don't we need to send that csrf token through form field value in vue js form as we used to in laravel blade file ?
does making the call to post/update/delete the project using axios not require a csrf token, like when you try to submit it using the default form flow?
This cookie is primarily sent as a developer convenience since some JavaScript frameworks and libraries, like Angular and Axios, automatically place its value in the X-XSRF-TOKEN header on same-origin requests.
it means if you use axios - you do not need to do anything. It will automatically appends X-XSRF-TOKEN to all your post/put/delete requests
@freemium you do not need to do anything more. Laravel bootstrap is enough to use axios. Just try to do axios.post (or put, or delete) call and it should works (no 419 Page expired exception)