Hi all,
I cannot get the CSRF token to work.
I have the following:
#csrfMetaTags()# in the <head></head>
<meta content="authenticityToken" name="csrf-param"><meta content="bv7unduicwlgc2ujmfsbqaqmvxvfr6m5ekh53bq1" name="csrf-token">
#authenticityTokenField()# in the form body
<input id="authenticityToken" name="authenticityToken" type="hidden" value="bv7unduicwlgc2ujmfsbqaqmvxvfr6m5ekh53bq1">
The form has method="post" yet I receive:
Wheels.InvalidAuthenticityToken
This POSTed request was attempted without a valid authenticity token.
Tag context
Error thrown on line 45 in wheels\controller\csrf.cfm
- called from line 13 in wheels\controller\processing.cfm
- called from line 205 in wheels\dispatch\functions.cfm
- called from line 5 in wheels\index.cfm
- called from line 2 in rewrite.cfm
- called from line 5 in wheels\events\onrequest.cfm
What am I doing wrong? I've got no answers except turning it off.