Getting error 419 even after using @csrf field after deployment of my laravel project on 000.webhostapp.com
I ran into a very critical solution and I can not find a solution on google. I am using Laravel 6 and everything works perfectly on my localhost. But, after deployment on 000.wbhostapp.com for every form I am using it is returning the 419 error (page expired) even though I have use the @csrf field. if you inspect the form you can see the that the CSRF field is present, but when you submit the form it returns the 419 error
You MUST receive session cookie. If you don't then the csrf token will always be invalid.
If cookies are not being sent, then it is because you are sending some content to the browser in advance of the actual content. You need to look at all the files you modified and check for blank line or other character before the opening <?php in every class