lundi 23 septembre 2019

Laravel 5.4: TokenMismatchException: in VerifyCsrfToken.php line 33

Despite searching through StackOverFlow and trying everything suggested during similarily posted questions, I am still struggling to get passed this Exception.

I have taken over this website, and have been tasked with getting it running on AWS. At the moment, I am doing nothing adventurous, and have simply copied the lot to a Linux AWS VM, which is running apache, php, beanstalk, Laravel, and MariaDB.

The site was set up to use the DB as the Session and Cache Driver. I have tried changing this to file and cookie but neither make a difference.

I have ensured that key:generate has been run and stored in the .env file.
I have tried all different versions of the csrf_token output in the form, to no avail.

I'm sorry to post yet another issue around this same problem but was hoping there were some other ideas to assist me.

A snippet from my form....

<form method="post" accept-charset="utf-8" autocomplete="off">
   <meta name="csrf-token" content="">
      <div class="form-group">
         <label for="email"></label>
         <input class="form-control" id="email" placeholder="" type="email" name="email" required>
      </div>



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire