Answer the question
In order to leave comments, you need to log in
ActionController::InvalidAuthenticityToken on all rails apps?
Hey! On all Rails sites (not even mine), ActionController::InvalidAuthenticityToken pops up in all my browsers.
At first I thought I broke something while developing my site. But no, I looked into the rails sample apps and saw the same error. Opened another browser. It happened again.
What the hell is going on? Has anyone come across?
Answer the question
In order to leave comments, you need to log in
It turned out that I had set tld_length: 2 and the local copy was on localhost. Solved by redirecting site.local domain to 127.0.0.1
Here is a similar problem, solved by replacing application_controller.rb
withprotect_from_forgery with: :null_session
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question