dev said almost 3 years ago on Sign in with Apple :
[2021-06-19T16:34:18.604221 #2862] ERROR -- omniauth: (apple) Authentication failure! ActionController::InvalidAuthenticityToken: ActionController::InvalidAuthenticityToken, ActionController::InvalidAuthenticityToken
Processing by Users::OmniauthCallbacksController#failure as HTML
  Parameters: {"state"=>"9bf2fd47a4a6a974e80889bceeb4fa10425b05b2c75a3cf6", "code"=>"cbeb4eb304c48409da86bf313402963fd.0.rrwxw.-Z_S38uP9QWZngKVYOw_Wg"}
HTTP Origin header (https://appleid.apple.com) didn't match request.base_url (https://0d63971b17d047668e6a6f6fdb8f02ed.vfs.cloud9.eu-central-1.amazonaws.com)
Completed 422 Unprocessable Entity in 1ms (ActiveRecord: 0.0ms | Allocations: 449)