Commit fa56c34b authored by Connor Shea's avatar Connor Shea

Remove background_jobs-specific headers.

parent 3ee8eb11
class Admin::BackgroundJobsController < Admin::ApplicationController
def show
use_secure_headers_override(:background_jobs)
ps_output, _ = Gitlab::Popen.popen(%W(ps -U #{Gitlab.config.gitlab.user} -o pid,pcpu,pmem,stat,start,command))
@sidekiq_processes = ps_output.split("\n").grep(/sidekiq/)
end
......
......@@ -50,8 +50,3 @@ SecureHeaders::Configuration.default do |config|
config.csp[:script_src] << "maxcdn.bootstrapcdn.com"
end
end
SecureHeaders::Configuration.override(:background_jobs) do |config|
config.csp[:frame_ancestors] = %w('self')
config.x_frame_options = 'SAMEORIGIN'
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment