Home>
I'm starting to study Rails 6. "What was made in Rails 2 and replaced in Rails 4" is replaced in Rails 6.
Since it works for development in local, it is played when I put it on AWS Linux 2.
All POSTs are FATAL with ActionController :: InvalidAuthenticityToken.
so,
No response is returned to the browser.
No Render in production.log.
Of course
- There is<% = csrf_meta_tags%>.
- in log
Parameters: {"authenticity_token" =>"reIhNlVOg0.
there is.
Please advise which area to look for.
I will post the log at login.
I, Started POST "/ users/sign_in" for 127.0.0.1 at 2020-12-07 11:29:58 +0000
I, INFO-: Processing by Devise :: SessionsController # create as HTML
I, INFO-: Parameters: {"authenticity_token" =>"ACxsQZ .... ZC8Wg ==", "user" =>{"username" =>"dezawa", "password" =>"[FILTERED]" , "remember_me" =>"0"}, "com
mit "=>" Log in "}
W, HTTP Origin header (http://www.example.com) didn't match request.base_url (http://www)
I, INFO-: Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms | Allocations: 357)
F, FATAL-: ActionController :: InvalidAuthenticityToken (ActionController :: InvalidAuthenticityToken):
I'm a little worried about W on the third line from the bottom. nginx upstream is showing up r ...
-
Answer # 1
Related articles
- ruby on rails 5 - actioncontroller :: invalidauthenticitytoken cannot be resolved
- ruby on rails - actioncontroller :: urlgenerationerror error cannot be resolved
- ruby - actioncontroller :: urlgenerationerror when validating rails comment function
- ruby - [rails] actioncontroller :: parametermissing is displayed when using fields_for and data is not saved
- ruby - the last db setting doesn't work when deploying rails app on aws
- ruby on rails - error in controller when transitioning with rails6 destory action
- ruby on rails - access fails after seed after deploying to heroku
- ruby on rails runtime error cannot be resolved
- ruby on rails - missing required keys: i'm having trouble resolving the [: id] error
- ruby on rails 5 - some items are not saved in db when posting from rails form
- ruby - [rails] i can't install the add favorite button
- bootstrap display in ruby on rails is broken
- ruby on rails - things associated with a foreign key cannot be called in view
- ruby on rails - dealing with wrong number of arguments (given 1, expected 2)
- ruby on rails - seed fails on heroku
- ruby on rails - cannot pass id to destroy action of intermediate table
- ruby on rails - how to manage prefectures in rails web applications
- ruby on rails - i want to post an image by dragging and dropping
- ruby - efficient writing of rails routing and actions
Trends
- python - you may need to restart the kernel to use updated packages error
- dart - flutter: the instance member'stars' can't be accessed in an initializer error
- php - coincheck api authentication doesn't work
- php - i would like to introduce the coincheck api so that i can make payments with bitcoin on my ec site
- [php] i want to get account information using coincheck api
- the emulator process for avd pixel_2_api_29 was killed occurred when the android studio emulator was started, so i would like to
- javascript - how to check if an element exists in puppeteer
- sh - 'apt-get' is not recognized as an internal or external command, operable program or batch file
- i want to check the type of a shell script variable
- i want to call a child component method from a parent in vuejs
I just checked, but have the following been set?
Reference https://qiita.com/_ayk_study/items/88269643c675fd4ca975