Add allow_other_host in redirects which may go outside app (#24252)
This commit is contained in:
parent
e63524f457
commit
e633b26f4f
3 changed files with 3 additions and 3 deletions
|
@ -23,7 +23,7 @@ class MediaProxyController < ApplicationController
|
|||
redownload! if @media_attachment.needs_redownload? && !reject_media?
|
||||
end
|
||||
|
||||
redirect_to full_asset_url(@media_attachment.file.url(version))
|
||||
redirect_to full_asset_url(@media_attachment.file.url(version)), allow_other_host: true
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue