Feature(s) impacted
Smart Action - Prefill a form with default values, using the hook feature
Observed behavior
The input is prefilled in development environment but when I try it in production, it does not work anymore.
Forest throws the following error : An error occured on form load. Check your server logs for more details.
Expected behavior
I expect the input to prefill the value, which is the actual behaviour in development.
Failure Logs
My server logs :
Processing by ForestLiana::ActionsController#load as JSON
2022-01-11T18:45:52.824157+00:00 app[web.1]: I, [2022-01-11T18:45:52.824135 #4] INFO -- : [b5a53444-521c-4593-a922-997cd3b8d8f7] Parameters: {"data"=>{"attributes"=>{"ids"=>["2"], "collection_name"=>"TransferCode", "parent_collection_name"=>nil, "parent_collection_id"=>nil, "parent_association_name"=>nil, "all_records"=>false, "all_records_subset_query"=>{}, "all_records_ids_excluded"=>[], "smart_action_id"=>"888a90b0-83f5-11ea-864f-09ec8b4f03af"}, "type"=>"action-requests"}, "timezone"=>"Europe/Paris", "action_name"=>"creer-un-versement-membre"}
2022-01-11T18:45:52.824286+00:00 app[web.1]: W, [2022-01-11T18:45:52.824263 #4] WARN -- : [b5a53444-521c-4593-a922-997cd3b8d8f7] HTTP Origin header (https://app.forestadmin.com) didn't match request.base_url (https://ichangedthenameofmyapp.herokuapp.com)
2022-01-11T18:45:52.824526+00:00 app[web.1]: I, [2022-01-11T18:45:52.824490 #4] INFO -- : [b5a53444-521c-4593-a922-997cd3b8d8f7] Completed 422 Unprocessable Entity in 0ms (ActiveRecord: 0.0ms)
2022-01-11T18:45:52.825099+00:00 app[web.1]: F, [2022-01-11T18:45:52.825064 #4] FATAL -- : [b5a53444-521c-4593-a922-997cd3b8d8f7]
2022-01-11T18:45:52.825101+00:00 app[web.1]: F, [2022-01-11T18:45:52.825088 #4] FATAL -- : [b5a53444-521c-4593-a922-997cd3b8d8f7] ActionController::InvalidAuthenticityToken (ActionController::InvalidAuthenticityToken):
Context
- Project name: Culturepay
- Environment name: Production
I am using forest_liana (7.4.5)