Skip to content
Snippets Groups Projects
Unverified Commit fa56c34b authored by Connor Shea's avatar Connor Shea
Browse files

Remove background_jobs-specific headers.

parent 3ee8eb11
No related branches found
No related tags found
No related merge requests found
class Admin::BackgroundJobsController < Admin::ApplicationController class Admin::BackgroundJobsController < Admin::ApplicationController
def show 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)) 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/) @sidekiq_processes = ps_output.split("\n").grep(/sidekiq/)
end end
Loading
Loading
Loading
@@ -50,8 +50,3 @@ SecureHeaders::Configuration.default do |config|
Loading
@@ -50,8 +50,3 @@ SecureHeaders::Configuration.default do |config|
config.csp[:script_src] << "maxcdn.bootstrapcdn.com" config.csp[:script_src] << "maxcdn.bootstrapcdn.com"
end end
end end
SecureHeaders::Configuration.override(:background_jobs) do |config|
config.csp[:frame_ancestors] = %w('self')
config.x_frame_options = 'SAMEORIGIN'
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment