From cb7b608dd70fc28152482c6710ebb5399a21acff Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Fri, 27 Sep 2024 13:51:59 +0100 Subject: [PATCH] Allow other host --- app/controllers/lettings_logs_controller.rb | 2 +- app/controllers/sales_logs_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/lettings_logs_controller.rb b/app/controllers/lettings_logs_controller.rb index 3abe367d1..f2643a32a 100644 --- a/app/controllers/lettings_logs_controller.rb +++ b/app/controllers/lettings_logs_controller.rb @@ -142,7 +142,7 @@ class LettingsLogsController < LogsController send_file downloader.path, filename: bulk_upload.filename, type: "text/csv" else presigned_url = downloader.presigned_url - redirect_to presigned_url + redirect_to presigned_url, allow_other_host: true end end diff --git a/app/controllers/sales_logs_controller.rb b/app/controllers/sales_logs_controller.rb index 9cba285ee..60be863cf 100644 --- a/app/controllers/sales_logs_controller.rb +++ b/app/controllers/sales_logs_controller.rb @@ -112,7 +112,7 @@ class SalesLogsController < LogsController send_file downloader.path, filename: bulk_upload.filename, type: "text/csv" else presigned_url = downloader.presigned_url - redirect_to presigned_url + redirect_to presigned_url, allow_other_host: true end end