I faced this error when Twilio was trying to send a POST request to our server and the server said – The page has expired due to inactivity.
The following answer from this URL solved the issue.
add
1 | @csrf |
app->Http->Middleware->VerifyCsrfToken.php
1
2
3
4 protected $except = [
'paste your route here'
'I pasted full url here with https'
];