I get 419 Page Expired every time I submit my contact form. GET works fine. What am I missing?
Most likely the CSRF token is missing. Add
@csrf inside your form:PHP
<form method="post" action="/contact">
@csrf
...
</form>
Yes! That fixed it. Thanks @MeeraCodes 🙂
Join the conversation — sign in or create a free account to reply.