From 7482b0f703621ad0d95c3573d6433902d328677d Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Tue, 7 Feb 2023 15:32:47 +0100 Subject: [PATCH] FIX: Redirecting to download backup from S3 could fail (#20171) Follow-up to 008b700a3f24fdbb0feb9897321b61a3deabe0e2 --- app/controllers/admin/backups_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/backups_controller.rb b/app/controllers/admin/backups_controller.rb index fd429312e73..99bc0ca2d35 100644 --- a/app/controllers/admin/backups_controller.rb +++ b/app/controllers/admin/backups_controller.rb @@ -84,7 +84,7 @@ class Admin::BackupsController < Admin::AdminController StaffActionLogger.new(current_user).log_backup_download(backup) if store.remote? - redirect_to backup.source + redirect_to backup.source, allow_other_host: true else headers["Content-Length"] = File.size(backup.source).to_s send_file backup.source