I'm on Rails
So I was messing around with my cookies and I might have deleted some important ones related to csrf. Now whenever I submit a form on my app I get: ActionController::InvalidAuthenticityToken
When I dig around in these requests it looks like this is why I am getting these errors.
When I actually debug through my request I get different values for form_authenticity_token
and request.headers['X-CSRF-Token']
but I have no idea why.
it seems like request.headers['X-CSRF-Token']
is the one that actually matches the meta tag on my page (and hidden field tag in the form) and its form_authenticity_token
that is incorrect.
Any thoughts?