Skip to content

Commit

Permalink
fix: Add link to hard reload a form that has been tampered with
Browse files Browse the repository at this point in the history
The content displayed on the error page when a form has been tampered
with currently instructs the user to reload the page. However, with
a number of modern browsers this will use the original request method,
in this case a `POST`, which will cause the error to continue to appear.

This change adds a link to the instruction that will force the browser
to reload this page with a `GET` which will regenerate the CSRF token
and prevent the error from re-appearing.
  • Loading branch information
teneightfive committed Oct 30, 2020
1 parent 6f24ea8 commit 62cd378
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locales/en/errors.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"tampered_with": {
"heading": "This form has been tampered with",
"content": "Try to reload the page and submit the form again in a few moments."
"content": "Try to <a href=\"\">reload the page</a> and submit the form again in a few moments."
},
"csrf_error": {
"heading": "$t(errors::tampered_with.heading)",
Expand Down

0 comments on commit 62cd378

Please sign in to comment.