Actions
Defect #26518
closedRails 5: Adding a block in My Page causes "Invalid form authenticity token."
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Steps to reproduce:
1. Open "My Page".
2. Add an any block. You will see "Invalid form authenticity token."
development.log:
There is an error "Can't verify CSRF token authenticity".
Started POST "/my/add_block" for 127.0.0.1 at 2017-07-25 11:00:28 +0900 Processing by MyController#add_block as HTML Parameters: {"utf8"=>"✓", "block"=>"issuequery"} Can't verify CSRF token authenticity. AnonymousUser Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."type" IN ('AnonymousUser') ORDER BY "users"."id" ASC LIMIT ? [["LIMIT", 1]] Rendering common/error.html.erb within layouts/base Rendered common/error.html.erb within layouts/base (1.5ms) Filter chain halted as :verify_authenticity_token rendered or redirected Completed 422 Unprocessable Entity in 28ms (Views: 24.5ms | ActiveRecord: 0.3ms)
Files
Related issues
Updated by Go MAEDA over 7 years ago
- Subject changed from Rails 5: Adding a block in My Page cases "Invalid form authenticity token." to Rails 5: Adding a block in My Page causes "Invalid form authenticity token."
Updated by Jean-Philippe Lang over 7 years ago
- Status changed from New to Closed
- Assignee set to Jean-Philippe Lang
- Target version deleted (
4.0.0) - Resolution set to Fixed
This is fixed by r16884. We now use jquery-ujs instead of the vanilla javascript ujs provided with rails 5.
Updated by Jean-Philippe Lang over 7 years ago
- Related to Feature #23630: Migrate to Rails 5.2 added
Updated by Marius BĂLTEANU over 5 years ago
- Related to Patch #31205: Replace jquery-rails with vanilla javascript ujs added
Actions