From e7abc007e369b5bb1a2ecf6b2e5d186514401395 Mon Sep 17 00:00:00 2001 From: Martin Ortbauer Date: Sat, 17 Feb 2024 07:09:27 -0500 Subject: [PATCH] fix bankgateway import redirect --- app/controllers/finance/bank_gateways_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/finance/bank_gateways_controller.rb b/app/controllers/finance/bank_gateways_controller.rb index 361a59081..a1659698d 100644 --- a/app/controllers/finance/bank_gateways_controller.rb +++ b/app/controllers/finance/bank_gateways_controller.rb @@ -21,7 +21,7 @@ def import return deny_access if reconfigure && !@bank_gateway.can_reconfigure?(current_user) location = @bank_gateway.connector.pay_and_import_url callback_uri, user, nil, reconfigure: reconfigure - redirect_to location, status: :found + redirect_to location, status: :found, allow_other_host:true rescue => error redirect_to finance_bank_account_transactions_url(bank_account), alert: t('errors.general_msg', msg: error.message) end