mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-08 07:21:03 +08:00
Fix download endpoint to allow redirects to other hosts [SCI-9465]
This commit is contained in:
parent
d181465e12
commit
22a130e502
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue