Front end: VUE back end: Laravel
- my requirement is that the verification code generated at the backend is stored in the session, and then the verification code in the session is compared with the verification code sent from the front end when the frontend post request is made, but the session value cannot be obtained at this time
2. After searching for it, I found that it was due to the closure of csrf, but my project was separated from the front and back end and was originally a cross-site request. no, no, no. If you don"t turn off csrf, you won"t report mismatchToken"s error
ask God to have a look