From 22a130e5025f558a81aee454ee9cacc326b3bcbe Mon Sep 17 00:00:00 2001 From: Martin Artnik Date: Wed, 25 Oct 2023 09:27:27 +0200 Subject: [PATCH] Fix download endpoint to allow redirects to other hosts [SCI-9465] --- app/controllers/asset_sync_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/asset_sync_controller.rb b/app/controllers/asset_sync_controller.rb index 00b51ef30..1eff86d04 100644 --- a/app/controllers/asset_sync_controller.rb +++ b/app/controllers/asset_sync_controller.rb @@ -20,7 +20,7 @@ class AssetSyncController < ApplicationController end def download - redirect_to @asset.file.url + redirect_to(@asset.file.url, allow_other_host: true) end def update