Set Content-Type nosniff for all downloads
This commit is contained in:

committed by
Sebastian Serth

parent
8fd5829110
commit
79faefde5a
@ -4,6 +4,7 @@ class LiveStreamsController < ApplicationController
|
||||
# Including ActionController::Live changes all actions in this controller!
|
||||
# Therefore, it is extracted into a separate controller
|
||||
include ActionController::Live
|
||||
before_action :set_content_type_nosniff
|
||||
|
||||
skip_before_action :deny_access_from_render_host, only: :download_submission_file
|
||||
skip_before_action :verify_authenticity_token, only: :download_submission_file
|
||||
|
Reference in New Issue
Block a user