Browse Source

Allow other host

pull/2653/head
Manny Dinssa 2 years ago
parent
commit
cb7b608dd7
  1. 2
      app/controllers/lettings_logs_controller.rb
  2. 2
      app/controllers/sales_logs_controller.rb

2
app/controllers/lettings_logs_controller.rb

@ -142,7 +142,7 @@ class LettingsLogsController < LogsController
send_file downloader.path, filename: bulk_upload.filename, type: "text/csv" send_file downloader.path, filename: bulk_upload.filename, type: "text/csv"
else else
presigned_url = downloader.presigned_url presigned_url = downloader.presigned_url
redirect_to presigned_url redirect_to presigned_url, allow_other_host: true
end end
end end

2
app/controllers/sales_logs_controller.rb

@ -112,7 +112,7 @@ class SalesLogsController < LogsController
send_file downloader.path, filename: bulk_upload.filename, type: "text/csv" send_file downloader.path, filename: bulk_upload.filename, type: "text/csv"
else else
presigned_url = downloader.presigned_url presigned_url = downloader.presigned_url
redirect_to presigned_url redirect_to presigned_url, allow_other_host: true
end end
end end

Loading…
Cancel
Save