diff --git a/app/controllers/finance/bank_gateways_controller.rb b/app/controllers/finance/bank_gateways_controller.rb index a1659698d..cf12771be 100644 --- a/app/controllers/finance/bank_gateways_controller.rb +++ b/app/controllers/finance/bank_gateways_controller.rb @@ -8,7 +8,7 @@ def callback count = @bank_gateway.connector.handle_callback params @bank_gateway.bank_accounts.each(&:assign_unlinked_transactions) unless bank_account - redirect_to redirect_to_url, notice: t('.notice', count: count) + redirect_to redirect_to_url, notice: t('.notice', count: count), allow_other_host:true rescue => error redirect_to redirect_to_url, alert: t('errors.general_msg', msg: error.message) end diff --git a/app/controllers/finance/invoices_controller.rb b/app/controllers/finance/invoices_controller.rb index 7208a4183..c0f82c5e0 100644 --- a/app/controllers/finance/invoices_controller.rb +++ b/app/controllers/finance/invoices_controller.rb @@ -89,7 +89,7 @@ def delete_attachment def pay unless params[:invoices] - return redirect_to unpaid_finance_invoices_path, alert: I18n.t('finance.invoices.controller.pay.no_invoices') + return redirect_to unpaid_finance_invoices_path, alert: I18n.t('finance.invoices.controller.pay.no_invoices'), allow_other_host:true end ids = params[:invoices].map(&:to_i)