It compares when you submit the form. Is it working at that point? Why would you refresh the page?
"@csrf" and still "419 page exired"
I am currently learning "30 days to learl Laravel" and I am at video 16. I have added @csrf to my form. Although it generates a new token in the source code every time I refresh the tab, it still shows "419 | Page Expired" when I click on "Send". I have already compared my code with the one on github: JeffreyWay/30-days-to-learn-laravel/tree/day-16
I am using Linux, local test environment, and have also tried it under different browsers. To narrow down the error, WHERE would I have to look, HOW does the browser or server compare that it is the RIGHT token? If the browser generates a new token, how does the server know that this token is the correct one? If it is the server that generates a new token, why can I see it in the source code of the user's browser?
Does anyone have any tips for me?
Side note: If possible, I wouldn't want to be handed the solution on a silver platter, but would like to learn something in the process, and even learn HOW something works.
Thank you :-)
Kind regards
Not only the "database.sqlite" file needs to be in the group "www-data" but also the folder in which this file is. The folder "database" too has to be in the group "www-data". It solved the problem for me.
I found the solution on the following page: matthewsetter.com/sqlite-attempt-to-write-to-readonly-database/
Thank you for your helps!
Please or to participate in this conversation.