A
A
Alexander Wolf2015-05-14 16:36:45
Ruby on Rails
Alexander Wolf, 2015-05-14 16:36:45

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

3 answer(s)
A
Alexander Wolf, 2015-05-19
@mannaro

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

S
Shetani, 2015-05-14
@Shetani

Here is a similar problem, solved by replacing application_controller.rb
with
protect_from_forgery with: :null_session

S
Shaks, 2015-05-14
@shaks

most likely cookies are disabled

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question