First Rails Application Request Form after Application Restart

After restarting the Rails application in production and submitting the login form for the first time, the application throws an "ActionController :: InvalidAuthenticityToken" error.

After submitting the first form, everything works fine.

The application only registers the action and controller parameters for the first request: {"action" => "create", "controller" => "user_sessions"}. All form parameters, including the authentication token, are not displayed, which explains the error message. Looking at this first form, submit a client side submission request, I have verified that the form was submitted correctly (all parameters posted correctly)

Performance tuning tuning: Rails 2.3.3, Apache2, Mongrel Cluster, default cookie session storage

The local development environment doesn't have the same problem.

+2
ruby ruby-on-rails


source to share


No one has answered this question yet

Check out similar questions:

17
Rails - invalid authentication token after deployment
8
Rails 5 Re-enable the submit form after successful submit_date
3
Rails ajax form send message
2
Ember js and Rails 4 CSRF
2
Rails remote form collection_select onchange error
1
Ruby on Rails: search form
1
Rails form will not submit a self-referencing form
0
Passing authenticity_token from json rendering json jbuilder API 5
0
Rails Cookie detection?
-1
ActionController :: InvalidAuthenticityToken in PostsController # create



All Articles
Loading...
X
Show
Funny
Dev
Pics