Ich habe eine neue Rails-API App erstellt und ein Adressmodell hinzugefügt und dann rails_admin installiert. Und wenn ich versuche, Zeilen hinzuzufügen, bekomme ich 422
sCSRF kann nicht überprüft werden: rails_admin mit rails_api
Ich kann sehen, dass CSRF-Token wurde in der JSON gesendet, aber es sagt, es ist ungültig.
Processing by RailsAdmin::MainController#new as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"9PP0EREx/cTK2TVtMp38ao/U9QCu6pjwmvV4fxIGEwTjZvGUfTcz7hpWL85UR/7qO3w+kytA2HD98+u7yiy3wg==", "address"=>{"door_no"=>"229", "street"=>"", "area"=>"", "city"=>"", "state"=>"", "pin"=>"", "code"=>""}, "return_to"=>"", "_save"=>"", "model_name"=>"address"}
Can't verify CSRF token authenticity.
Completed 422 Unprocessable Entity in 0ms (ActiveRecord: 0.0ms)
ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken)
Was könnte falsch sein? Etwas in dem Edelstein vielleicht?